Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     

Dynamically add javascript in content page

Some time developers need to call the javascript file from code behind or dynamically from content page then you may call javascript file with below given code.

HtmlGenericControl externalJScript = new HtmlGenericControl();
externalJScript.TagName = "script";
externalJScript.Attributes.Add("type", "javascript");

Share this article   |    Print    |    Article read by 1323 times
Rohit kakria
I am software developer, moderator of
Related Articles:
Related Interview Questions: