Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/257.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 带有~_C#_Asp.net - Fatal编程技术网

C# 带有~

C# 带有~,c#,asp.net,C#,Asp.net,我正试图找到那条路。 不确定是否应该: string driveLetter = Server.MapPath("~/Docs/"); 或 如果您想要文档文件夹的物理文件路径,那么只需使用 string driveLetter = Server.MapPath("~/Docs"); 当你尝试时,每种方法的输出是什么? string driveLetter = Server.MapPath("~/Docs");

我正试图找到那条路。 不确定是否应该:

    string driveLetter =  Server.MapPath("~/Docs/");


如果您想要文档文件夹的物理文件路径,那么只需使用

string driveLetter =  Server.MapPath("~/Docs");

当你尝试时,每种方法的输出是什么?
string driveLetter =  Server.MapPath("~/Docs");