Reputation: 6188
I want to capture all the query string which is coming from the back page into a string and throw as a Response.Redirect("myPage.aspx?ALL Query String Goes Here").
How should I do this? Thanks!
Upvotes: 1
Views: 409
Reputation: 26
This works for me:
string redirectURL = "http://www.example.com/myPage.aspx?" + Request.QueryString.ToString();
Response.Redirect(redirectURL);
Upvotes: 1