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
What can we do with asp.net?
What is paging in context of Memory?
What is a gridview in asp.net?
How do we access view state value of this page in the next page?
What is the difference between viewstate and hidden field in asp.net?
What is difference between asp.net and asp?
What is role-based security in asp.net?
Define the term Web Garden?
Where can I get information on cookies in asp.net?
What is the difference between web.config and machine.config in ASP.NET?
Which is better php or asp.net?
What is asp.net master page?
What is difference between session and cookies in asp net?
What is the significance of ASP.NET routing?
How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.