JosephEricDavis
asked on
ASP.NET - Register Startup Script from a postback inside an update panel.
I have a situation where I have a button inside of an update panel. When the button is clicked it triggers a partial page postback. In the code behind of that partial page postback I am trying to register a client startup script based on logic that is running in the server side click event. The code I'm trying to use to do this is...
ClientScript.RegisterStart upScript(t his.GetTyp e(), "Displayt36SaveDetailsComp leteMessag e", "Displayt36SaveDetailsComp leteMessag e();", true);
But when the partial page postback completes, this code is not being run. Is there a way I can register a script in the code behind of a partial page postback of an update panel and have that script run as soon as the update panel finishes the postback?
Thanks
ClientScript.RegisterStart
But when the partial page postback completes, this code is not being run. Is there a way I can register a script in the code behind of a partial page postback of an update panel and have that script run as soon as the update panel finishes the postback?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oops sorry, the correct reference for that method is:
http://msdn.microsoft.com/en-us/library/bb359558.aspx
http://msdn.microsoft.com/en-us/library/bb359558.aspx
Open in new window
Reference:
http://msdn.microsoft.com/en-us/library/bb310408.aspx