The Global.asax file (also known as the ASP.NET application file) is an optional file that is located in the application's root directory and is the ASP.NET counterpart of the Global.asa of ASP. This file exposes the application and session level events in ASP.NET and provides a gateway to all the application and the session level events in ASP.NET.
The Global.asax file, which is derived from the HttpApplication class, maintains a pool of HttpApplication objects, and assigns them to applications as needed.
The Global.asax file contains the following events and they're triggered in the following order:
Application_Init: Fired when an application initializes or is first called. It's invoked for all HttpApplication object instances.
Application_Start: Fired when the first instance of the HttpApplication class is created. It allows you to create objects that are accessible by all HttpApplication instances.
Application_BeginRequest: Fired when an application request is received. It's the first event fired for a request, which is often a page request (URL) that a user enters.
Application_AuthenticateRequest: Fired when the security module has established the current user's identity as valid. At this point, the user's credentials have been validated.
Application_AuthorizeRequest: Fired when the security module has verified that a user can access resources.
Application_ResolveRequestCache: Fired when the ASP.NET page framework completes an authorization request. It allows caching modules to serve the request from the cache, thus bypassing handler execution.
Application_AcquireRequestState: Fired when the ASP.NET page framework gets the current state (Session state) related to the current request.
Application_PreRequestHandlerExecute: Fired before the ASP.NET page framework begins executing an event handler like a page or Web service.
Applcation_PreSendRequestHeaders: Fired before the ASP.NET page framework sends HTTP headers to a requesting client (browser).
Application_PreSendRequestContent: Fired before the ASP.NET page framework sends content to a requesting client (browser).
(Code is executed)
Application_PostRequestHandlerExecute: Fired when the ASP.NET page framework is finished executing an event handler.
Application_ReleaseRequestState: Fired when the ASP.NET page framework completes execution of all event handlers. This results in all state modules to save their current state data.
Application_UpdateRequestCache: Fired when the ASP.NET page framework completes handler execution to allow caching modules to store responses to be used to handle subsequent requests.
Application_EndRequest: The last event fired for an application request.
Application_Disposed: Fired just before an application is destroyed. This is the ideal location for cleaning up previously used resources.
Application_End: Fired when the last instance of an HttpApplication class is destroyed. It's fired only once during an application's lifetime.
Session_Start: Fired when a new user visits the application Web site.
Session_End: Fired when a user's session times out, ends, or they leave the application Web site.
Application_Error: Fired when an unhandled exception is encountered within the application.
Monday, September 29, 2008
Friday, September 12, 2008
Filter in CSS
The filter properties in a DHTML CSS element, are used to add styles and effects to text or images.
The following is a list of some of the filter properties, and what they do.
1. Alpha - sets the opacity of the element
2. Blur - makes the element blur
3. Chroma - makes the specified color transparent
4. Fliph - flips the element horizontally
5. Flipv - flips the element vertically
6. Glow - makes the element glow
7. Gray - renders the element in black and white
8. Invert - renders the element in its reverse color and brightness values
9. Mask - renders the element with the specified background color, and transparent foreground color
10. Shadow - renders the element with a shadow
11. Dropshadow - renders the element with a dropshadow
12. Wave - renders the element like a wave
13. Xray - renders the element in black and white with reverse color and brightness values
There are different arguments each of these properties attain. Here's a list of each of their attributes:
1. Alpha:
-opacity
-finishopacity
-style
-startx
-starty
-finishx
-finishy
2. Blur:
-add
-direction
-strength
3. Chroma:
-color
4. Fliph:
-none
5. Flipv:
-none
6. Glow:
-color
-strength
7. Gray:
-none
8. Invert:
-none
9. Mask:
-color
10. Shadow:
-color
-direction
11. Dropshadow:
-color
-offx
-offy
-positive
12. Wave:
-add
-freq
-lightstrength
-phase
-strength
13. Xray:
-none
The following is a list of some of the filter properties, and what they do.
1. Alpha - sets the opacity of the element
2. Blur - makes the element blur
3. Chroma - makes the specified color transparent
4. Fliph - flips the element horizontally
5. Flipv - flips the element vertically
6. Glow - makes the element glow
7. Gray - renders the element in black and white
8. Invert - renders the element in its reverse color and brightness values
9. Mask - renders the element with the specified background color, and transparent foreground color
10. Shadow - renders the element with a shadow
11. Dropshadow - renders the element with a dropshadow
12. Wave - renders the element like a wave
13. Xray - renders the element in black and white with reverse color and brightness values
There are different arguments each of these properties attain. Here's a list of each of their attributes:
1. Alpha:
-opacity
-finishopacity
-style
-startx
-starty
-finishx
-finishy
2. Blur:
-add
-direction
-strength
3. Chroma:
-color
4. Fliph:
-none
5. Flipv:
-none
6. Glow:
-color
-strength
7. Gray:
-none
8. Invert:
-none
9. Mask:
-color
10. Shadow:
-color
-direction
11. Dropshadow:
-color
-offx
-offy
-positive
12. Wave:
-add
-freq
-lightstrength
-phase
-strength
13. Xray:
-none
Subscribe to:
Posts (Atom)