asp.net - Registering a dynamic javascript after an UpdatePanel's update -


I have a page with a dynamically-generated JavaScript (the script is actually very stable, but its variable value On the user input are filled on the basis)

The control to take the results and user input is inside an UpdatePanel which updates itself on some user inputs, some of these user inputs cause me to change in the previously spoken variable, so I Must have to register a new javascript.

The problem with the problem is that the update panel is updated only and the script is registered outside the update panel New scripts have been added.

What will be the best practice for you now? Can I make it by plugging this script (and variable) into inside updates or making sure the page is completely reloaded whenever it requires posting a new javascript? Script Manager can help me on the page on which I am already on the page ...

That's why I am searching for someone who has a similar problem and in a good way Resolved, or just somebody with some shiny ideas :)

Why not only the updated panel Insert variables inside, or get the value through Javascript's DOM?


Comments