Friday, April 13, 2012

ASP.NET/AJAX LinkButton in ListView inside UpdatePanel causes full PostBack

If you have a LinkButton in ListView within the UpdatePanel - clicking the LinkButton will cause Postback of the entire page. The solution is quite simple - in web.config we need to add:

    <pages clientIDMode="AutoID"></pages>

That's it, enjoy the partial PostBack the way Bill Gates intended! :)

No comments:

Post a Comment