what is the main difference between web.config and global.asax ?
in ASP, I used to put global variables in global.asax, but now we have both of them...
quite confusing... looking for answer.
thanks,
BeiHi,
Take a look @.What is the difference between config.web and global.asax
HTH
In the simplest way:
Web.config usually for setting configuration of the web application which may includes: security mode, and the application configuration key, debug mode, etc
Global.asax contains a lot of events which affects your web application, such as Application_Start and End, Application_AuthenticateRequest, Application_Error.
In these events you can create / add some codes for dealing with user authentication, and what to do when there is an error occur.
For more info have a look on articles on Microsoft
0 comments:
Post a Comment