Showing posts with label Full page postback. Show all posts
Showing posts with label Full page postback. Show all posts

Friday, August 16, 2013

PostBack Full Page Using Control in Update Panel.

If you've ever used an AJAX UpdatePanel and needed to have a control within the UpdatePanel cause a full postback of the page, here's how you do it.

ScriptManager scriptManager = ScriptManager.GetCurrent(Page);

if (scriptManager != null)

{

    scriptManager.RegisterPostBackControl(SaveButton);

}