これが私のコードです:
protected void Page_Load(object sender, EventArgs e)
{
Button btn = new Button();
btn.Text = "Button";
btn.ID = "Button1";
pnlMain.Controls.Add(btn);
Panel pnl = new Panel();
pnl.ID = "pnl";
Label lbl = new Label();
lbl.ID = "lbl";
lbl.Text = "Hi this is my Balloon popup";
pnl.Controls.Add(lbl);
pnlMain.Controls.Add(pnl);
BalloonPopupExtender balloonPopupExtender1= new BalloonPopupExtender();
balloonPopupExtender1.TargetControlID = btn.ID;
balloonPopupExtender1.BalloonPopupControlID = pnl.ID;
balloonPopupExtender1.BalloonSize = BalloonPopupSize.Small;
balloonPopupExtender1.BalloonStyle = BalloonPopupStyle.Rectangle;
balloonPopupExtender1.DisplayOnMouseOver = true;
balloonPopupExtender1.DisplayOnClick = true;
balloonPopupExtender1.DisplayOnFocus = false;
}
このコードは正しく実行されますが、バルーンポップアップが表示されません...