Click here to Skip to main content
15,921,793 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Can't run Javascript method from external file after updatepanel postback.
I used the ScriptManager.RegisterClientScriptInclude method:
SQL
ScriptManager.RegisterClientScriptInclude(updatePanel, updatePanel.GetType(), "a_key", "myScript.js");


But It doesn't work. Is there any possibility?

Thanks in Advance
Posted

1 solution

Not sure if you are having a problem when you call your js (if that is the case look at the console via the browser developer tools to check for errors), or that you want a piece of js to run after an update but it isn't. For that issue this thread covers running js on updatepanel postbacks.

How to run javascript after updatepanel execution completed[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900