Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
1)its important to have global.asax file every website application.
2)how global.asax helps for better development of site.
Posted

its not important to have global.asax file every website application,

If you want to session variables, application variables and other events than its good to use global.asax file.
To know more about global.asax file. Look after the following links:

http://www.shoutasp.net/discussions/p343/What-is-Global-asax-file-used-for-in-ASP-Net.aspx[^]

http://www.techrepublic.com/article/working-with-the-aspnet-globalasax-file/5771721[^]

Thanks
Ashish
 
Share this answer
 
For application and session event handling we need this file. The Global.asax file is optional. You create it only if you want to handle application or session events. If you do not define the file, the ASP.NET page framework assumes that you have not defined any application or session event handlers.

Refer the links for details:
MSDN : Global.asax File[^]
MSDN : Global.asax Syntax[^]


--Amit
 
Share this answer
 
small>>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900