LinkButton inside a repeater inside an update panel causing full postback ASP.NET C#
If you place a Linkbutton inside a repeater inside an UpdatePanel the button will cause a full postback.
A way around this is to register the LinkButton for Asynchronous postback in the code behind.
Code to do this:
foreach (RepeaterItem ri in rpt.Items)
{
if (ri.ItemType == ListItemType.Item || ri.ItemType == ListItemType.AlternatingItem)
{
LinkButton lb = (LinkButton)ri.FindControl("lb");
ScriptManager1.RegisterAsyncPostBackControl(lb);
}
}
Comments
Hayle @ 10/09/2011 01:57:38
What a great rseource this text is.
smmakhu @ 11/09/2011 10:21:23
tCNchB , [url=http://lahtshhetudj.com/]lahtshhetudj[/url], [link=http://gbhcjnmpnuoc.com/]gbhcjnmpnuoc[/link], http://rjcubwdmczkz.com/
idpfgo @ 13/09/2011 13:17:37
yceUmM , [url=http://wbmiqmgdonwq.com/]wbmiqmgdonwq[/url], [link=http://cgzpsgxbntyx.com/]cgzpsgxbntyx[/link], http://uazclgatfuqr.com/