Does asp.net mvc Url.Content encode the input or should I also use Url.Encode on top of it?
2 Answers
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.