In ASP.NET MVC Can't as in Global.asax we have Application_Start event that contains the registration of Areas, FilterConfig, RouteConfig and BundleConfig. If you remove this, the configuration is removed and the application doesn't run.
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
In ASP.NET Same as the case ASP.NET application latest version.
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
So now we can say that without global.asax, an asp.net application can't run. Earlier, it was possible.
Regards,
Sheo Narayan
http://www.dotnetfunda.com
Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator