| |
|
What is global.asax in ASP.NET? Application_start, Session_start?
The global.asax concept is the crux of any ASP NET interview. The global.asax file is used to add application level logic & processing. Note that the
global.asax does not handle any UI related processing, nor does it process individual page
level requests. It basically controls the following events...
Application_Start Application_End Session_Start Session_End
Note that in Visual Studio 2003 automatically creates this file for every web application, but in
Visual Studio 2005, this file has to be added to the web project specifically.
Code in the global.asax is compiled when the web appication is built for the first time. The
application level code and variables may be declared in Application_Start. Similarly, session
level code & variables may be declared in Session_Start event. Application level events are
for the entire application, and may be used for any user, while Session level events are user
specific for a length of a session.
Page Redirection
Values Between Pages
Worker Process
Page Life Cycle
Global Variables
Postback
Server Control
Viewstate
Send Email
Namespace
Localization
Event Handler
Validation
Global.asax
HttpHandler
Session
Cookie
EnableViewState
Smart Navigation
Web Farm
Dataset
Register
| |