I have this
string test = HttpUtility.HtmlDecode("http://test.com/Folder1/Folder2/my%20view.aspx");
When I look into test it still has %20 instead of a space. Wh开发者_运维知识库y is it not decoding this?
You are looking for HttpUtility.UrlDecode()
(in the System.Web namespace, I think)
HttpUtility.HtmlDecode not decoding "%20", use HttpUtility.UrlDecode to decode "%20"
精彩评论