You can try something like this to ensure that the query string wraps:
protected void Page_Load(object sender, EventArgs e)
{
Response.Status = "301 Moved Permanently";
string sQueryString = this.Request.ServerVariables["QUERY_STRING"];
Response.AddHeader("Location", String.Format("http://www.domain.com/example.aspx?{0}", sQueryString));
}
bigtv source
share