Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the Global.asax used for?

Answer Posted / rajesh

Global.asax is use to implement Application and Session
level Events and those events are:

1. Application_Start()
2. Application_End()
3. Application_Error()
4. Session_Start()
5. Session_End()

1. Application_Start() is executed when the application is
loaded into the webserver ie, when the whole web
application starts.It is global across all the users
visiting the website.Any kind of initialization logic can
be placed in this event.

2.It is used to perform release kind of activities like
releasing resources etc.

3.This event is executed when an error is occured and the
developer hasn`t written appropiate exception handling code.

4.This event is specific for each user`s session , ie this
event executes for each time for different users visiting
the website.Each User has his own session created for him
when he visits the website , a session_id is created for
him and is stored in the browsers cache and the same id is
used to recognise the user when he visits the website next
time.Can place initialization logic when the session starts.

5.Same as Application_End(), used for release kind of
activities, but this event is specific for each user`s
session.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the best practices to follow to secure connection strings in an ASP.NET web application?

1049


How to Insert/Add in ASPXgridview

1041


What is asp according to you?

1041


What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.

1019


Can asp.net work on an nt server?

1041


What is the use of data set in asp.net?

957


Give an example of what might be best suited to place in the application_start and session_start subroutines?

968


What is difference between viewstate and session state in javascript?

1113


What is master page in dtp?

988


What is asp.net futures?

1099


If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?

1004


What is full form of asp.net?

1018


What are the HTML server controls in ASP.NET?

1090


What is css in asp.net?

1075


What is the difference between typeof() vs gettype()?

1110