Friday 8 April 2011

Run asp.net webiste only above IE7

public class Global : HttpApplication
{
protected void Application_BeginRequest(object sender, EventArgs e)
{
HttpBrowserCapabilities browser = HttpContext.Current.Request.Browser;
if (browser.Browser.Equals("IE") && browser.MajorVersion < 7)
HttpContext.Current.Response.Redirect("NotSupported.aspx");
}
}


Ref: http://forums.asp.net/t/1564007.aspx/1?run+my+asp+net+webiste+only+above+IE7