Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Could I write a javascript code on code behind page
Posted

1 solution

You can write javascript in codebehind. You can create javascript code in a string variable but it needs sending to the browser so it can be executed. You can do this using a ClientScriptManager.

http://msdn.microsoft.com/en-us/library/system.web.ui.clientscriptmanager.aspx[^]
 
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