I am trying to include script and style references that will not be interrupted during deployment, however I cannot even get links to work locally. I tried using Url.Content() and MVCContrib <%=Html.ScriptInclude("")%> .
My scripts are in the Scripts folder in the root of the site; My styles are in the usual Content / css / folder.
The scripts look like this:
<script type="text/javascript" src="/Scripts/MicrosoftAjax.debug.js" ></script>
This will not work on the browse page in the Views folder. What am I doing wrong and what is the best way to handle this?
I would think that Url.Content() at least work for styles, but would be used on my main page, the link displayed
<link href="/Content/css/Site.css rel="stylesheet" type="text/css" />
This does not work because the main page is in the shared folder, so what is really the way forward with this?
source share