what is server.mappath(".") in asp.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
精彩评论