server.MapPath() in Asp.net
What is the role of using Server.MapPath() function in uploading a file?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted May 25, 2012, 3:24 AM
Please refer the below link
http://www.c-sharpcorner.com/uploadfile/abhikumarvatsa/server-mappath-in-Asp-Net/default.aspx
Thanks
Jignesh TrivediPosted May 25, 2012, 2:14 AM
The MapPath method maps a specified path to a physical path.
In your application, you might need to determine the path of a file or other resource on the server. For example, if your Web project reads or writes a text file programmatically, you must supply the file's complete physical path to the methods used for reading and writing.
please refer
http://msdn.microsoft.com/en-us/library/ms524632%28v=vs.90%29.aspx
hope this will help u.
SenthilkumarPosted May 25, 2012, 1:53 AM
Server.MapPath used to map the server path where the application hosted. It will gives you the path where the files can be stored.