J
Jianwei Sun
Hi, Dear guru,
I have a question on embed a javascript into the master page.
I put the following line
<link runat="server" type="text/javascript" href="~/column.js" />
under the head, but obviously, it's not called anywhere.
But if I put this line,
<script type="text/javascript" src="column.js"></script>, it worked.
But I think i have to use the first approach since the second approach
will use an absolute path, and won't resolve in other pages which
include the master page.
Is there anyway around this issue
Thanks for help.
I have a question on embed a javascript into the master page.
I put the following line
<link runat="server" type="text/javascript" href="~/column.js" />
under the head, but obviously, it's not called anywhere.
But if I put this line,
<script type="text/javascript" src="column.js"></script>, it worked.
But I think i have to use the first approach since the second approach
will use an absolute path, and won't resolve in other pages which
include the master page.
Is there anyway around this issue
Thanks for help.