如何使用更多参数作为值来处理URL字符串中的&符号

时间:2017-06-14 13:11:15

标签: asp.net asp.net-mvc uri

我正在尝试将&符号作为url参数之一的值发送但没有任何成功。

Response.Redirect(String.Format("WebForm.aspx?P1=&P2=&P3="));

E.g。 “WebForm.aspx?P1 = John& P2 = Smith& P3 = Del& Company”返回John Smith Del。所以将&符号作为url中的值后的所有内容都会被修剪。

有什么技巧可以解决这个问题。

注意:该网址来自其他地方的参数。

1 个答案:

答案 0 :(得分:0)