我想通过URL和我的代码是:URL编码和解码
MyUrl = "http://www.abc.co.in/Download.aspx?period=" + Server.UrlEncode
(DateTime.Now.ToString("dd-MMM-yyyy")) + "&ProductName="
+ Server.UrlEncode(productName) + "";
mail.Body += "<a href=" + MyUrl + ">Demo Download</a>";
而我依然获得输出,如:
http://www.abc.co.in/Download.aspx?period=12-Apr-2013&ProductName=Otja
那么,什么是错的与我的代码和如何解码它在download.aspx
?
你期望输出什么,输入是什么? – walther 2013-04-11 11:10:48
我想要在DateTime中编码输出perticulat它是如此重要 – 2013-04-11 11:12:07
你有'''你忘记将href作为'“'。之后,编码完成了,我不知道为什么你没有一步一步地调试,看看你真的在代码里面得到什么,而不是你在渲染中看到的东西 – Aristos 2013-04-11 11:14:20