Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET - Browser Requirements

Status
Not open for further replies.

Patbeau

Programmer
Apr 7, 2003
32
0
0
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top