Hi,
My site cant support netscape 4 and I want to redirect people with this browser to a page. Is this a good way to do it? Can I do this with web.config ?
protected void Application_BeginRequest(Object sender, EventArgs e)
{
HttpBrowserCapabilities bc;
bc = Request.Browser;
string sType = bc.Type;
if((Request.ServerVariables["SCRIPT_NAME"].IndexOf("index.aspx") == -1) && (Request.ServerVariables["SCRIPT_NAME"].IndexOf("integria_requis.aspx") == -1))
{
if(bc.Type == "Netscape4")
{
Response.Redirect("requirement.aspx");
}
}
}
Thank you!
Patrice
My site cant support netscape 4 and I want to redirect people with this browser to a page. Is this a good way to do it? Can I do this with web.config ?
protected void Application_BeginRequest(Object sender, EventArgs e)
{
HttpBrowserCapabilities bc;
bc = Request.Browser;
string sType = bc.Type;
if((Request.ServerVariables["SCRIPT_NAME"].IndexOf("index.aspx") == -1) && (Request.ServerVariables["SCRIPT_NAME"].IndexOf("integria_requis.aspx") == -1))
{
if(bc.Type == "Netscape4")
{
Response.Redirect("requirement.aspx");
}
}
}
Thank you!
Patrice