Difference Between Web.Config file and Global.asax ?

 Posted by Chvrsri on 12/31/2010 | Category: ASP.NET Interview questions | Views: 15548 | Points: 40
Answer:

Web.Config file is used ....

1. To specify the application settings
2. To specify the session mechanism available to use for that application.
3. To Specify the Connection strings.
4. To Specify the authentication and authorization.
5. To Specify the http handlers.
6. To Specify different providers.

Global.asax file is used to specify the session and application event handlers.


Source: My Own !!! | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Ck.kislay on: 1/4/2011 | Points: 10
In short web.config is used for configuration setting purpose and Global.asax is used for Application level activity.

Thanks,
Chandan

Login to post response