Server.MapPath()

后端 未结 3 475
予麋鹿
予麋鹿 2021-01-19 00:56

I want to use Server.MapPath() method im order to map a virtual directory I created to its physical path.

The thing is that the .net environment doesn\'t recognize S

3条回答
  •  执念已碎
    2021-01-19 01:36

    Make sure you have included System.Web in your projects References Do these (In Visual Studio IDE):

    1. Right click on the Project Node (Solution Explorer Window)
    2. On the context mennu, click Add Reference
    3. Select System.Web on the .NET Tab list items.
    4. Hit OK button

    Server.MapPath should now be available.

提交回复
热议问题