RegisterClientScriptInclude Question
-
Hello, I'm trying to register two javascript files in my asp.net page and have found that it only registers one of them (always the last one). Is there a way to make it register several js pages programatically? :confused:
ClientScriptManager objClientScript = Page.ClientScript;
objClientScript.RegisterClientScriptInclude("objMainScript",
"../Javascript/neutralMain.js");objClientScript.RegisterClientScriptInclude("objMainScript",
"../Javascript/Wizards.js"); -
Hello, I'm trying to register two javascript files in my asp.net page and have found that it only registers one of them (always the last one). Is there a way to make it register several js pages programatically? :confused:
ClientScriptManager objClientScript = Page.ClientScript;
objClientScript.RegisterClientScriptInclude("objMainScript",
"../Javascript/neutralMain.js");objClientScript.RegisterClientScriptInclude("objMainScript",
"../Javascript/Wizards.js");hi Have you tried changing the key name (objMainScript) Hope this helps/ www.fuzzelogicSolutions.com