HttpContext returning only "/"

Posted by user281180 on Stack Overflow See other posts from Stack Overflow or by user281180
Published on 2010-05-26T09:44:48Z Indexed on 2010/05/26 9:51 UTC
Read the original article Hit count: 148

Filed under:
|

I have the following two lines of codes in my model, however, both virtual and path have values "\". Where have I gone wrong?

var virtual = VirtualPathUtility.ToAbsolute(HttpContext.Current.Request.ApplicationPath);

var path =HttpContext.Current.Request.ApplicationPath;

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about mvc