Does asp.net mvc Url.Content encode the input or should I also use Url.Encode on top of it?
A:
The Content method just converts a virtual path to an absolute application path. What is there to Encode?
Dismissile
2010-08-16 13:34:44
A:
No.
According to http://msdn.microsoft.com/en-us/library/system.web.mvc.urlhelper.content(VS.90).aspx it only expands the ~ character. If that character does not exist then the path is returned as it was passed in.
You can also test it. Using ASP.Net 4.0 it did not for me.
kervin
2010-08-16 13:34:53