ADS

Friday 4 May 2018

What is Global.asax ?

What is Global.asax in ASP.NET?

Hello Everyone ! Welcome back to my website www.coderbaba.in 
in this post i will explain about Global.asax file in asp.net web development.
coder baba
Add caption

What is Global.asax  : 


This is the simple C# file which contains some important event method these method are executed when a particular event is fire.
This file has following method:
Application_start,application_end,application_error,session_start, session_end;


Application_start():


When web server receive a request from the client for the web application very first time then it creates an application object and executes this method.

Server store application object in the memory until web application is undeployed .
Each page of the web application can shared the value of application object and it is common for each user.
Those values that are common for each user should be kept in the application object the type of these value are object.

Session_start():

When web server generate a session ID for the user it execute session_start(), when this session ID is destroy than it execute session_End().


Thank you .

............................
Thanks for being with us make sure you share and stay with us with subscribing us -

 Regards
 CODERBABA
...........................
Follow Me Socially :
Youtube: https://www.youtube.com/coderbaba
Facebook : https://www.facebook.com/coderbaba
 Instagram :https://www.instagram.com/coderbaba
 Twitter : https://twitter.com/thecoderbaba
............................

See you in next blog, have a nice day.
GOOD LUCK

No comments:

Post a Comment

Popular Posts