How to get fully qualified path of css file?

Posted by Malcolm on Stack Overflow See other posts from Stack Overflow or by Malcolm
Published on 2010-04-17T10:57:39Z Indexed on 2010/04/17 11:03 UTC
Read the original article Hit count: 788

Filed under:
|

Hi,

In ASP.NET MVC how do I get the fully qualified path to my css file by specifying the relative path.

Eg

Url.Content("~/Content/Print.css")

This returns eg "/Content/Print.css"

Where as I want

http://www.mysite.com/Content/Printcss

Understand the issue?

Malcolm

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc