开发者

what is server.mappath(".") in asp.net

开发者 https://www.devze.com 2023-02-03 13:58 出处:网络
What is server.MapPath() in asp.net. Can any o开发者_StackOverflowne please explain with examplewritten in Vb.net

What is server.MapPath() in asp.net. Can any o开发者_StackOverflowne please explain with example written in Vb.net

Thank you


Server.MapPath(".") represents the current request absolute path, so if Server.MapPath("~") equals c:\wwwroot which represents the site root and the current request is /foo then Server.MapPath(".") will return c:\wwwroot\foo.


For detailed explanation, read Making Sense of ASP.NET Paths by Rick Strahl

0

精彩评论

暂无评论...
验证码 换一张
取 消