if (Request.RawUrl.ToString().IndexOf('?') > -1)
{
if (Request.RawUrl.ToString().IndexOf('&') > -1)
{
Response.Redirect("../error.aspx");
}
else
{
String[] QueryString = Request.QueryString.ToString().Split('&');
String[] FirstParam = QueryString[0].Split('=');
if (FirstParam[0] != "AspxAutoDetectCookieSupport")
{
Response.Redirect("../error.aspx");
}
}
}
{
if (Request.RawUrl.ToString().IndexOf('&') > -1)
{
Response.Redirect("../error.aspx");
}
else
{
String[] QueryString = Request.QueryString.ToString().Split('&');
String[] FirstParam = QueryString[0].Split('=');
if (FirstParam[0] != "AspxAutoDetectCookieSupport")
{
Response.Redirect("../error.aspx");
}
}
}