问题描述
|
我想将所有来自后页的查询字符串捕获为一个字符串,并作为Response.Redirect(\“ myPage.aspx?ALL Query String Goes Here \”)抛出。
我应该怎么做?谢谢!
解决方法
这对我有用:
string redirectURL = \"http://www.example.com/myPage.aspx?\" + Request.QueryString.ToString();
Response.Redirect(redirectURL);
, 这将为您提供原始查询字符串。
Request.Url.Query