I have created a masterpage and in the header section I am including a javascript file as below:
<script language="JavaScript" src="scripts/browsercheck.
js" type="text/javascript"></script>
I have also created several content pages in the root directory (same as the masterpage). When I run these pages the javascript works fine.
The problem I have is when I have a content page located in a sub folder...for example. contactUs/default.aspx
The javascript file in the masterpage will only work if I put '../' before the 'scripts/browsercheck.
js', but it will only work when i am using a content page within a folder like the contactUs folders and not a content page thats in the root.
How can I over come this issue? I have read the second chapter of the Beginning ASP.NET2.0 and I find something that says about the Page_Load code section. Wondering if its something to do with this?
If someone could guide me in the right direction, then that would be brilliant.
Thanks
Steve