I have added linkbutton inside html table dynamically and add into bootstrap modal's body. (linkbutton has coded linkbutton.click += new eventhandler(Eventclick1);)
but, when I click on select, it won't go to my function Eventclick1
. It just refreshes the whole page. (it is already inside updatepanel). Anyways I can make the select
button to postback? (I don't want to add client side click function like onclientclick = $('#otherbutton').click();
)
UPDATE
lnk_button.ID = this.ID + "AuditSelectedRow_" + Convert.ToString(l_loop);
lnk_button.Click += new EventHandler(OnAuditRowSelected);
lnk_button.Text = "Select";
WebControl wc_tdSelect = new WebControl(HtmlTextWriterTag.Td);
wc_tdSelect.Controls.Add(lnk_button);