N
Naveen K Kohli
I have couple of javascript files that need to be referenced for each
content page. So I am trying to put them on Master page. The problem is that
content pages are not on one level of the site. I have been trying to find a
way to specify path to these JS files so that the actual path to these files
correctly gets applied on the path at every level of the folder hierarchies.
So far no luck...
<script languaage=javascript src="/Scripts/myfile.js" />
Is there any solution to this problem? I have tried to use Server.MapPath
approach to fill src attribute from server side but that does not fly
because it throws exception that controls can't be added or removed on the
page because of theese server tags present on the page..
Any solution to this problem.. I am this close to abandoning use of master
page concept of asp.net 2
Thanks
content page. So I am trying to put them on Master page. The problem is that
content pages are not on one level of the site. I have been trying to find a
way to specify path to these JS files so that the actual path to these files
correctly gets applied on the path at every level of the folder hierarchies.
So far no luck...
<script languaage=javascript src="/Scripts/myfile.js" />
Is there any solution to this problem? I have tried to use Server.MapPath
approach to fill src attribute from server side but that does not fly
because it throws exception that controls can't be added or removed on the
page because of theese server tags present on the page..
Any solution to this problem.. I am this close to abandoning use of master
page concept of asp.net 2
Thanks