Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/323.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/1/asp.net/35.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# 如何从html编码的url获取完整的url_C#_Asp.net - Fatal编程技术网

C# 如何从html编码的url获取完整的url

C# 如何从html编码的url获取完整的url,c#,asp.net,C#,Asp.net,Folderpath\0\Microsoft%202007\chapter1\images 如何从此url路径中删除%20。 编辑:抱歉,我没有注意到ASP.Net中的ASP.Net标记。有一个更简单的方法: 使用这个 string s = HttpUtility.UrlDecode(@"folderpath\Microsoft%202007\chapter1\images");

Folderpath\0\Microsoft%202007\chapter1\images

如何从此url路径中删除%20。

编辑:抱歉,我没有注意到ASP.Net中的ASP.Net标记。有一个更简单的方法:

使用这个

string s = HttpUtility.UrlDecode(@"folderpath\Microsoft%202007\chapter1\images");