首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

HyperLink 里的空格解决方法

2012-03-27 
HyperLink 里的空格C# codetest.NavigateUrl http://localhost/RdsOA/FaxFile/2010-12-27 202011-01-05

HyperLink 里的空格
 

C# code
test.NavigateUrl = "http://localhost/RdsOA/FaxFile/2010-12-27 202011-01-05/365/faxPage.pdf";
 

前台变成了
http://localhost/RdsOA/FaxFile/2010-12-27%20202011-01-05/365/faxPage.pdf
不是我想要的地址(空格变成了%20)
我想要是的原来的地址
"http://localhost/RdsOA/FaxFile/2010-12-27 202011-01-05/365/faxPage.pdf"



[解决办法]
%20 就是空格的转义。你想的那个是没办法的了。

热点排行