Response.Redirect在现有的Query-string上添加新的Query-string?

时间:2014-06-03 12:11:16

标签: vb.net

我有一个Response.Redirect如下:

Response.Redirect("http://192.168.50.3/Quoteman/Production/MachineSweepLite.aspx?AreaID=" + AreaID + "&Mobile=" + Mobile)`

当此事件触发我的按钮单击并继续我的Query-String时,如下所示:

http://192.168.50.3/Quoteman/Production/MachineSweepLite.aspx?AreaID=1#/Quoteman/Production/MachineSweepLite.aspx?AreaID=1&Mobile=App`

我一直坚持这个问题好好花了5个小时尝试不同的方式来重定向页面,但没有一个工作(Javascript,很多VB函数)。

有谁知道这可能是什么原因?

1 个答案:

答案 0 :(得分:0)

变量AreaID,Mobile应具有以下值:

AreaID = 1 
Mobile = App 

而是值:

AreaID = 1#/Quoteman/Production/MachineSweepLite.aspx?AreaID=1 (wrong) 
Mobile = App (correct) 

corect Query-String应为:

http://192.168.50.3/Quoteman/Production/MachineSweepLite.aspx?AreaID=1&Mobile=App

检查变量AreaID。