The solution to this problem is to use ScriptManager.RegisterStartupScript instead. You can call it like so:
ScriptManager.RegisterStartupScript(updatePanel1, updatePanel1.GetType(), "key", "alert('My script');", true);
ScriptManager.RegisterStartupScript(updatePanel1, updatePanel1.GetType(), "key", "alert('My script');", true);
7 comments:
Nice one. Saved me tons of time.
Always glad to be of service!
Awesome. You are legend
I owe you an afternoon.
Thanks a ton nitin.
Thanks for the solution :)
look at this link, you might find an answer:
http://www.systemdeveloper.info/2014/01/fileupload-control-in-update-panel.html
or in
http://www.systemdeveloper.info/2014/02/how-do-i-add-javascript-updatepanel-in.html
Post a Comment