Sunday, March 11, 2012

Raising a non partial page postback from within a updatepanel

Hi,

you should declare the button as a PostBack trigger. This is done by declaring a PostBackTrigger inside the Triggers section of the UpdatePanel control.

<asp:PostBackTrigger ControlID="myButton" />


The easiest thing to do is in the function that handles the asynchronous calls from the drop-down lists, add

ScriptManager.GetCurrent(Page).RegisterPostBackControl(control)

where control is the button. This will make the button post bock the entire page.

No comments:

Post a Comment