Skip to content

Instantly share code, notes, and snippets.

@c1982
Created February 17, 2011 02:36
Show Gist options
  • Save c1982/830835 to your computer and use it in GitHub Desktop.
Save c1982/830835 to your computer and use it in GitHub Desktop.
using System.Web.Mvc;
using System.Web.Routing;
using MvcApplication1.Models;
namespace MvcApplication1
{
public class MvcApplication : System.Web.HttpApplication
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
filters.Add(new CheckBrowserAttribute()); // <= Filitremiz
}
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RegisterGlobalFilters(GlobalFilters.Filters);
RegisterRoutes(RouteTable.Routes);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment