I have a TreeView the updates a GridView inside of an UpdatePanel when the selected node changes. This works. I also have a button to submit the page with a full refresh. I want the button to be hidden until a node is selected.
When the button is outside of the UpdatePanel it does not become visible because that portion of the page is not refreshed. When it is inside the UpdatePanel, it becomes visible when it should and, when clicked raises the button_click event but does not
refresh the page. I need the page to refresh because I register a startup script to open a new window AFTER doing some server side processing.
I would like to know how I can make the button visible (when it is outside of the UpdatePanel) when a treeview node is selected.
OR
Make the button submit the page when it is inside the UpdatePanel.
In the abreviated code below you can see the two locations where I have placed the button.
bob2
0 Points
2 Posts
Using an UpdatePanel and Submit Button Together
Feb 22, 2007 06:59 PM|LINK
I have a TreeView the updates a GridView inside of an UpdatePanel when the selected node changes. This works. I also have a button to submit the page with a full refresh. I want the button to be hidden until a node is selected.
When the button is outside of the UpdatePanel it does not become visible because that portion of the page is not refreshed. When it is inside the UpdatePanel, it becomes visible when it should and, when clicked raises the button_click event but does not refresh the page. I need the page to refresh because I register a startup script to open a new window AFTER doing some server side processing.
I would like to know how I can make the button visible (when it is outside of the UpdatePanel) when a treeview node is selected.
OR
Make the button submit the page when it is inside the UpdatePanel.
In the abreviated code below you can see the two locations where I have placed the button.
Thanks.
Steve Marx
Contributor
2460 Points
643 Posts
Re: Using an UpdatePanel and Submit Button Together
Feb 23, 2007 07:44 AM|LINK
The button will need to be inside, and you'll have to add it as a PostBackTrigger:
...
<Triggers>
...
<asp:PostBackTrigger ControlID="RunReport" />
</Triggers>
...
bob2
0 Points
2 Posts
Re: Using an UpdatePanel and Submit Button Together
Feb 23, 2007 07:46 PM|LINK