ASP.NET MVC helpers generates URLs with slash, I use <base />
tag for my project, so it possible to place application to folder. Is it possible to generate relative URLs without first slash?
Thanks!
ASP.NET MVC helpers generates URLs with slash, I use <base />
tag for my project, so it possible to place application to folder. Is it possible to generate relative URLs without first slash?
Thanks!
Use this syntax for your images...
<img src="<%=ResolveUrl("~/Content/images/mylogo.jpg")%>"/>
...and all of your URLs will be calculated based upon the root of the domain, making them work in any page.