【发布时间】:2017-06-14 13:11:15
【问题描述】:
我正在尝试将 & 号作为 url 参数之一的值发送,但没有任何成功。
Response.Redirect(String.Format("WebForm.aspx?P1=&P2=&P3="));
例如"WebForm.aspx?P1=John&P2=Smith&P3=Del&Company" 返回 John Smith Del。因此,作为 url 中的值的 & 之后的所有内容都会被修剪。
有什么技巧可以解决这个问题。
注意:url 是由其他地方的参数提供的。
【问题讨论】:
-
用户 Server.URLEncode 在 URL 中发送值之前。
标签: asp.net asp.net-mvc uri