G
Guest
Hi, all:
I have a problem with the inclusion of .js files in mu .aspx pages when
using Master Pages. I try to explain it. If I make a web project without
master pages I simply put in the head tag on each page the reference to the
..js file I want to use. Because I want client side includes I make the
reference with <script> tag, for example:
<head runat=server>
<script src="/javascript/test.js" />
</head>
But, If I try to make the same project using Master Pages this don´t work. I
suppose I have to put the references to .js files in the master pages. So I
put the code listed before in the master page <head> tag, create an .aspx
page, use a function of the .js file and it doesn´t work. But, If I put this
path ( "javascript/test.js") instead of this ( "/javascript/test.js") it
works fine (note the difference in the first backslash). I need to use the
first one, with the first backslash. Anyone knows which is the problem?
Any help would be appreciated.
I have a problem with the inclusion of .js files in mu .aspx pages when
using Master Pages. I try to explain it. If I make a web project without
master pages I simply put in the head tag on each page the reference to the
..js file I want to use. Because I want client side includes I make the
reference with <script> tag, for example:
<head runat=server>
<script src="/javascript/test.js" />
</head>
But, If I try to make the same project using Master Pages this don´t work. I
suppose I have to put the references to .js files in the master pages. So I
put the code listed before in the master page <head> tag, create an .aspx
page, use a function of the .js file and it doesn´t work. But, If I put this
path ( "javascript/test.js") instead of this ( "/javascript/test.js") it
works fine (note the difference in the first backslash). I need to use the
first one, with the first backslash. Anyone knows which is the problem?
Any help would be appreciated.