I am faceing following problem
I have a repeater control on a modal popup extender. On run time I add linkbutton based on the number of items in a datatable assigned to that repeater control.In itemDataBound event of repeater I am adding that link button, like this
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
LinkButton lbtn = new LinkButton();
lbtn.ID = "lbtn" + DataBinder.Eval(e.Item.DataItem, "DatasourceId").ToString();
lbtn.Text = DataBinder.Eval(e.Item.DataItem, "DatasourceName").ToString();
lbtn.Click += new EventHandler(lbtn_Click);
but this linkbutton event is not getting fired on click. only the modal popup goes off.
I tried with command also for linkbutton instead of Click event handler. But that also did not help.
View Complete Post