How to programmatically insert a javascript into a web page?

Monday, May 5, 2014

I am using ASP.NET and C#. Essentially I want to build a string like this using C#:



string strScript = "<script type="text/javascript">stuff</script>";


Then I want to insert that as the very first javascript in the web page (note that it is important that it be the first script in the page).


Thanks in advance for the help!







http://ift.tt/1mwP3Q2