If the script needs to be dynamically modified, then you have to use the
RegisterClientScriptBlock method (in the Page class for ASP.NET 1.1, and
in the ClientScriptManager for ASP.NET 2.0), but it is to be avoided
especially for big functions, because then it won't be cached, but sent
to the client on every request.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.