flynny
asked on
Partial Postback reseting dynamically loaded user control
Hi all,
I have a page which has an update panel. Inside the update panel I have a signup process which is split down a number of user controls and loaded using AJAX.
Now I my code follows the tutorial found here;
http://geekswithblogs.net/rashid/archive/2007/08/11/Loading-UserControl-Dynamically-in-UpdatePanel.aspx
Now, in one of the usercontrols I have its own ajax call which loads some HTML and adds to a div on the usercontrol as a kind of popup.
When the user clicks the link inside the usercontrol (which is inside the update panel). the ajax fires, fires the webmethod, returns the html, adds the html to the div, and completes.
at this point the Page_Load in the parent ASPX is firing which then 'reloads' the current usercontrol.
Does anyone have any ideas on how I can supress this reload?
I have a page which has an update panel. Inside the update panel I have a signup process which is split down a number of user controls and loaded using AJAX.
Now I my code follows the tutorial found here;
http://geekswithblogs.net/rashid/archive/2007/08/11/Loading-UserControl-Dynamically-in-UpdatePanel.aspx
Now, in one of the usercontrols I have its own ajax call which loads some HTML and adds to a div on the usercontrol as a kind of popup.
When the user clicks the link inside the usercontrol (which is inside the update panel). the ajax fires, fires the webmethod, returns the html, adds the html to the div, and completes.
at this point the Page_Load in the parent ASPX is firing which then 'reloads' the current usercontrol.
Does anyone have any ideas on how I can supress this reload?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.