Click here to Skip to main content
16,022,060 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi!
Can anyone suggest me how to find the full path of a web server.
actually i have deployed my application on the web server and there i have given a download button so that when a user clicks the related data gets downloaded, But to do so I have to store the data in the web server location n write that location in the code but i am not able to do so.
Can anyone suggest me any idea that how to find the actual path of a web server.
Posted

1 solution

You can use Server.MapPath[^]

Server.MapPath("~")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900