You can also use registerclientscriptblock or registerstartupscript functions that allows trhe code behid to write the javascript. The first writes the code on an event, the second writes the page on startup of the page.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.