Click here to Skip to main content
15,896,401 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
About Global.asax File in MVC in Detail
Posted

Global.asax is the heart of any application as it contains the
C#
protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
//it has configuration for Web Api template if you use in MVC4
                                                     
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
//this you can refer to my first message in my profile about Action Filters and global Filters
            RouteConfig.RegisterRoutes(RouteTable.Routes);
//this guides the user with the application i.e. navigation paths.
            BundleConfig.RegisterBundles(BundleTable.Bundles);
//this is used for bundling your scripts and styles(css) files so that the page load and its efficiency increases.
        }

this is a brief idea about Global.asax accept the solution if you find any help in it.
thank you
Happy Coding
Enjoy SD's
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900