Wednesday, December 15, 2010

Force full postback in Update panel

Typically update panel requires only partial post back. But occasionaly there is a requirement to post back entire page after a control fires server side event. This can be easily achived using
PostBackTrigger in Triggers section of the update panel. I had a requirement of using GridView control inside the update panel. The GridView should trigger only partial postback on sort and delete commands, but full page post back on edit and add copy commands. I could do this using ScriptManager.RegisterPostBackControl() method as described at http://www.brybot.ca/archives/update-panel-gridview-and-non-asynchronous-postbacks-in-aspnet-20. Thanks a lot Bryan.

No comments:

c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch

 If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...