Hi,
I was wondering if it was possible for a control inside an updatepanel to cause a full page postback.
I have a button in an updatepanel that when pressed, modifies some controls outside of the updatepanel. I need the page to do a full postback so that the rest of the controls are updated when the button is clicked. I can't put those other controls in another updatepanel, because one of those controls is a treeview.
Should I just remove the update panel, or is there a programmatical way to cause a full postback ?
Thanks in advance, Max
Try this:
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <Triggers> <asp:PostBackTrigger ControlID="Button2" /> </Triggers> <ContentTemplate> <asp:Button ID="Button1" runat="server" Text="Click me for an async postback." /> <asp:Button ID="Button2" runat="server" Text="Click me for a full postback." /> </ContentTemplate></asp:UpdatePanel>
And I was wondering what the postbacktrigger's where for !.
Thanks
And I was wondering what the postbacktrigger's where for !.
Thanks
No comments:
Post a Comment