G
Guest
I use Master Pages, so I make use of URL rebasing through the ~ operator,
like this in the <head>:
<link runat="server" href="~/Root.master.css" media="screen"
rel="stylesheet" type="text/css" />
It works perfectly and the ~ gets converted by the server into the correct
relative path. Great!
Now, I put this in the <head>:
<script type="text/javascript" src="~/Root.master.js"
runat="server"></script>
And everything screws up. It looks like it's trying to compile that .js file
into the page as the CLR throws up syntax errors and compiler errors in my
JavaScript (which is valid JavaScript).
What am I doing wrong?
like this in the <head>:
<link runat="server" href="~/Root.master.css" media="screen"
rel="stylesheet" type="text/css" />
It works perfectly and the ~ gets converted by the server into the correct
relative path. Great!
Now, I put this in the <head>:
<script type="text/javascript" src="~/Root.master.js"
runat="server"></script>
And everything screws up. It looks like it's trying to compile that .js file
into the page as the CLR throws up syntax errors and compiler errors in my
JavaScript (which is valid JavaScript).
What am I doing wrong?
