The Global.asx file is an optional file that contains code for responding to application level events raised by ASP.NET. This file is also called as ASP.NET application file. This file resides in the root directory of an application. If we are not defining this file in application, the ASP.NET page framework assumes that you have not defined any applicationa/Session events in the application.
Followign are the list of events handled in the global.asax file.
Event: Application_Start
When an application starts. This event occurs only one time in an application’s life cycle. It occurs again when you restart the application. It’s the best place to count number of visitors.
Event: Application_End
This event occurs when application ends.
Event: Session_Start
This event occurs whenever a new session starts. This is the best place to count user sessions for an application
Practical Usage: Setting user specific values, caching items based upon user context.
Event: Session_End
This event Opposite of the previous event.
Event: Application_Error
This event occurs when an unhandled error or exception occurs in an application.
Event: Application_BeginRequest
This event occurs every time when server makes a request. This event may occur multiple times in an applications life cycle.
The most amazing beat box video ever
French beat box phenomenon EKLIPS performs a 4 minutes history of HIP HOP for Trace Urban... In one single take!
4 minutes hip hop history by Eklips for Trace
Assembly Directive in ASP.Net The @Assembly directive is used to make your ASP.NET page aware of external components. This directive supports two attributes:@Assembly DirectiveThe @ Assembly directive can be…
File extensions in ASP.Net File extensions associated with different versions of ASP.NET include:.asax : Global.asax, used for application-level logic.ascx : Web UserControls: custom controls to be placed…
Using Cache methods & HttpCacheability in ASP.Net The main benefits of caching are performance-related operations like accessing database information can be one of the most expensive operations of an ASP page's life cycle. If the…
Blogger Blogspot Free Template Themes and Design Free Blogger Templates for your Blog. Blogger Templates for free and direct download in xml. Layouts with 1, 2 or 3 columns.
Blogger Templates
btemplates.com/
Free Blogger…
Overloadable Operators ASP.Net C# C# allows user-defined types to overload operators by defining static member functions using the operator keyword. Not all operators can be overloaded.These unary operators can be…