B
Ben Daniel
Hi all,
I think this question should be fairly common but I couldn't find any
existing answers in the forums.
I have a Master Page that refers to uses some client scripts like so:
<script language="javascript" type="text/javascript" src="Scripts/
Browser.js" />
<script language="javascript" type="text/javascript" src="Scripts/
Common.js" />
So any pages that inherit from this master page will automatically use
these scripts. And it works fine for pages in the application's root
directory BUT but all the pages I have under an \Admin\ directory
don't work as it tries to find the scripts under /WebsiteRoot/Admin/
Scripts/ instead of /WebsiteRoot/Scripts/
It seems I can't use "~" either! e.g. src="~/Scripts/Browser.js"
I reckon this would have to be a common problem encountered by asp.net
developers! So I'm desperate to find out how others (and how I can)
get around this problem.
Thanks in advance, Ben
I think this question should be fairly common but I couldn't find any
existing answers in the forums.
I have a Master Page that refers to uses some client scripts like so:
<script language="javascript" type="text/javascript" src="Scripts/
Browser.js" />
<script language="javascript" type="text/javascript" src="Scripts/
Common.js" />
So any pages that inherit from this master page will automatically use
these scripts. And it works fine for pages in the application's root
directory BUT but all the pages I have under an \Admin\ directory
don't work as it tries to find the scripts under /WebsiteRoot/Admin/
Scripts/ instead of /WebsiteRoot/Scripts/
It seems I can't use "~" either! e.g. src="~/Scripts/Browser.js"
I reckon this would have to be a common problem encountered by asp.net
developers! So I'm desperate to find out how others (and how I can)
get around this problem.
Thanks in advance, Ben