I created the default ASP.net project by default. On the main page, I have the following at the top
<head runat="server"> <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title> <link href="../../Content/Site.css" rel="stylesheet" type="text/css" /> </head>
Then I need to add the javascript file and add the line as follows by dragging the file from the solution browser to the page:
<head runat="server"> <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title> <link href="../../Content/Site.css" rel="stylesheet" type="text/css" /> <script src="../../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script> </head>
When I access the site and view the html from the browser, I see this:
<head><title> Index </title><link href="Content/Site.css" rel="stylesheet" type="text/css" /> <script src="../../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script> </head>
The relative path to the CSS file has been fixed, but the JS file is missing. The site will be deployed to a different folder on the server than the root that I get in my development window.
Is there any way to do this?
javascript asp.net-mvc
jvanderh
source share