470,647 Members | 1,229 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

Global.ASAX changing URL

Hi All,
i do have an website with the URL http://localhost/application/ASEAN-ANZ,
Once i hit the application, it goes to the Global.asax.
but after that if i tried to change the URL http://localhost/application/en-US,

the global.asax is not fired.
Does any body has any idea why this is not fired

Thanks in Advance

Thomso

May 4 '07 #1
3 2734
On May 4, 8:33 am, thomson <saintthom...@yahoo.comwrote:
Hi All,
i do have an website with the URLhttp://localhost/application/ASEAN-ANZ,

Once i hit the application, it goes to the Global.asax.

but after that if i tried to change the URLhttp://localhost/application/en-US,

the global.asax is not fired.

Does any body has any idea why this is not fired

Thanks in Advance

Thomso
which event is not fired?

May 4 '07 #2
re:
Does any body has any idea why this is not fired
The Global.asax file may contain the following events:

- Application_Init:
Fired when an application initializes or is first called.
It's invoked for all HttpApplication object instances.

Only fires once, when the application starts.

- Application_Disposed:
Fired just before an application is destroyed.
This is the ideal location for cleaning up previously used resources.

It's fired only once during an application's lifetime.

- Application_Error:
Fired when an unhandled exception is encountered within the application.

- 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.

Only fires once, when the application starts.

- Application_End:
Fired when the last instance of an HttpApplication class is destroyed.

It's fired only once during an application's lifetime.

- 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.

Does your code reside in this event ?

- Application_EndRequest:
The last event fired for an application request.

Does your code reside in this event ?

- Application_PreRequestHandlerExecute:
Fired before the ASP.NET page framework begins executing
an event handler like a page or Web service.

Does your code reside in this event ?

- Application_PostRequestHandlerExecute:
Fired when the ASP.NET page framework is finished executing an event handler.

Does your code reside in this event ?

- Applcation_PreSendRequestHeaders:
Fired before the ASP.NET page framework sends HTTP headers to a requesting client (browser).

Does your code reside in this event ?

- Application_PreSendContent:
Fired before the ASP.NET page framework sends content to a requesting client (browser).

Does your code reside in this event ?

- Application_AcquireRequestState:
Fired when the ASP.NET page framework gets the current state
(Session state) related to the current request.

Does your code reside in this event ?

- 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.

Does your code reside in this event ?

- 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.

Does your code reside in this event ?

- 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.

Does your code reside in this event ?

- 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.

Does your code reside in this event ?

- Application_AuthorizeRequest:
Fired when the security module has verified that a user can access resources.

Does your code reside in this event ?

- Session_Start:
Fired when a new user visits the application Web site.

Does your code reside in this event ?

- Session_End:
Fired when a user's session times out, ends, or they leave the application Web site.

Does your code reside in this event ?

In which of the above-listed events does your code reside ?


Juan
====
"thomson" <sa**********@yahoo.comescribió en el mensaje
news:11**********************@o5g2000hsb.googlegro ups.com...
Hi All,
i do have an website with the URL http://localhost/application/ASEAN-ANZ,
Once i hit the application, it goes to the Global.asax.
but after that if i tried to change the URL http://localhost/application/en-US,

the global.asax is not fired.
Does any body has any idea why this is not fired

Thanks in Advance

Thomso


May 4 '07 #3
On May 4, 4:57 pm, "Juan T. Llibre" <nob...@nowhere.comwrote:
re:
Does any body has any idea why this is not fired

TheGlobal.asaxfile may contain the following events:

- Application_Init:
Fired when an application initializes or is first called.
It's invoked for all HttpApplication object instances.

Only fires once, when the application starts.

- Application_Disposed:
Fired just before an application is destroyed.
This is the ideal location for cleaning up previously used resources.

It's fired only once during an application's lifetime.

- Application_Error:
Fired when an unhandled exception is encountered within the application.

- 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.

Only fires once, when the application starts.

- Application_End:
Fired when the last instance of an HttpApplication class is destroyed.

It's fired only once during an application's lifetime.

- 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.

Does your code reside in this event ?

- Application_EndRequest:
The last event fired for an application request.

Does your code reside in this event ?

- Application_PreRequestHandlerExecute:
Fired before the ASP.NET page framework begins executing
an event handler like a page or Web service.

Does your code reside in this event ?

- Application_PostRequestHandlerExecute:
Fired when the ASP.NET page framework is finished executing an event handler.

Does your code reside in this event ?

- Applcation_PreSendRequestHeaders:
Fired before the ASP.NET page framework sends HTTP headers to a requesting client (browser).

Does your code reside in this event ?

- Application_PreSendContent:
Fired before the ASP.NET page framework sends content to a requesting client (browser).

Does your code reside in this event ?

- Application_AcquireRequestState:
Fired when the ASP.NET page framework gets the current state
(Session state) related to the current request.

Does your code reside in this event ?

- 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.

Does your code reside in this event ?

- 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.

Does your code reside in this event ?

- 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.

Does your code reside in this event ?

- 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.

Does your code reside in this event ?

- Application_AuthorizeRequest:
Fired when the security module has verified that a user can access resources.

Does your code reside in this event ?

- Session_Start:
Fired when a new user visits the application Web site.

Does your code reside in this event ?

- Session_End:
Fired when a user's session times out, ends, or they leave the application Web site.

Does your code reside in this event ?

In which of the above-listed events does your code reside ?

Juan
====
"thomson" <saintthom...@yahoo.comescribió en el mensajenews:11**********************@o5g2000hsb.go oglegroups.com...
Hi All,
i do have an website with the URLhttp://localhost/application/ASEAN-ANZ,
Once i hit the application, it goes to theGlobal.asax.
but after that if i tried to change the URLhttp://localhost/application/en-US,
theglobal.asaxis not fired.
Does any body has any idea why this is not fired
Thanks in Advance
Thomso- Hide quoted text -

- Show quoted text -
Hi,
Its the Session_Acquire RequestState , Event, any insights
Thanks

Thomson

May 7 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Andrea Williams | last post: by
1 post views Thread by gemel | last post: by
5 posts views Thread by WJ | last post: by
22 posts views Thread by fd123456 | last post: by
5 posts views Thread by Justin Morris via DotNetMonster.com | last post: by
2 posts views Thread by Steve | last post: by
8 posts views Thread by Rob T | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.