I am having problems with a button not firing within my asp.net page and I was wondering if anyone can give me in sight to this problem.First you need to know is that i use modalpopupexntender to pop up panels and on the last panel i start adding controls to an existing panel dynamically.Here is the panel that exists and controls are added dynamically\[code\]<asp:ModalPopupExtender ID="ModalPopupExtender10" runat="server" TargetControlID="hndPage5" OkControlID="imgExitEdit1" PopupControlID="pnlReview" BackgroundCssClass="LoadingBackground" ></asp:ModalPopupExtender><input type="hidden" runat="server" id="hndPage5" /><aspanel runat="server" ID="pnlReview" CssClass="Modal450h450w" Height="300px"> This is table</aspanel>\[/code\]I start adding controls to the above panel from this segment of code also this event is from another modalpopupextender with a button :\[code\]protected void btnReview_Button_Click(object sender, EventArgs e) {HtmlTable table = new HtmlTable(); DataTable tblBillingAddress = Members.MemberBillingAddressSearch(MemberID); for (int i = 0; i < tblBillingAddress.Columns.Count; i++) { CreateRow(tblBillingAddress.Columns.ColumnName.ToString(), tblBillingAddress.Rows[0][tblBillingAddress.Columns.ColumnName].ToString(), table); } Button btn = (Button)sender; if (btn.ID == "btnIbanReview") { CreateRow("thing", thing.Text, table); CreateRow("other", other.Text, table); } else if (btn.ID == "btnrrTReview") { CreateRow("this", this.Text, table); } Button btnBack = new Button(); Button btnConfirm = new Button(); btnBack.ID = "btnReviewClose"; btnConfirm.ID = "btnReviewConfirm"; btnBack.Text = "Back"; btnConfirm.Text = "Confirm"; btnBack.Click += new EventHandler(this.btnAdd_Close_Click); btnConfirm.Click += new EventHandler(this.btnConfirm_Click); HtmlTableCell cell1 = new HtmlTableCell(); HtmlTableCell cell2 = new HtmlTableCell(); cell1.Controls.Add(btnBack); cell2.Controls.Add(btnConfirm); HtmlTableRow rr = new HtmlTableRow(); rr.Cells.Add(cell1); rr.Cells.Add(cell2); table.Rows.Add(rr); pnlReview.Controls.Add(table); pnlReview.Visible = true; ModalPopupExtender10.Show();}\[/code\]Here is the CreateRow() method :\[code\]private void CreateRow(string heading, string value, HtmlTable hTable) { HtmlTableRow row = new HtmlTableRow(); HtmlTableCell cHeading = new HtmlTableCell(); HtmlTableCell cValue = http://stackoverflow.com/questions/13874976/new HtmlTableCell(); cHeading.InnerText = heading; cHeading.Style.Add("font-weight", "bold"); row.Cells.Add(cHeading); cValue.InnerText = value; row.Cells.Add(cValue); hTable.Rows.Add(row); }\[/code\]And here is the event that I created : \[code\]void btnConfirm_Click(object sender, EventArgs e) { ModalPopupExtender10.Hide(); }\[/code\]I have tried creating the button in the Page_Init(), Page_Onit() and Page_Load() and later on i add the control the panel after its created.Any help or in sight would be appreciated