You have the same work as Url.Content (). Url.Content () is similar to adding ~ to the beginning of your paths:
<script src="~/Scripts/jquery.js" type="text/javascript"></script>
It simply ensures that the path is always correct using routing. You can also use the Html helper method to make this easier:
public static string RenderScript(this HtmlHelper htmlHelper, string file) {
var f = file.EndsWith(".js") ? file : string.Concat(file, ".js");
return string.Format("<script src=\"/public/scripts/{0}\" type=\"text/javascript\"></script>", f);
}
:
<%=Html.RenderScript("jquery")%>