No you don't. You need to write an HttpModule if you want to provide general pre-processing for your pages, similar to those used by the Session, Caching or FormsAuthentication system.
If you write an HttpModule, hook into the pre-request processing then you can sort of the query string and then just let ASP.NET system continue to route the request to the handler. The event that you're looking to handle from the HttpApplication is PreRequestHandlerExecute
(unless you want to fix the query string before things like security and caching occur, in which case you can hook up the BeginRequest event).
Regards
Dave
Provide an answer, and you enable a developer to code today. Show them how to find the answer using Google, and they can code forever.
Member
2 Points
77 Posts
problem to load pages usually
Jan 02, 2012 07:46 AM|AliProfessional|LINK
Hi
every body
I need to write httphandler for any request of aspx pages.
It control querystring of page in ProcessRequest and if there was a problem it correct page's querystring.
My problem is that i couldn't load my aspx page in ProcessRequest event after control it.
Thanks for any guides.
Regards
Ali
Member
280 Points
105 Posts
Re: problem to load pages usually
Jan 02, 2012 12:35 PM|hardikyano|LINK
Hi,
Please post your code that you have used to do this. Post every code that you have till now.
Contributor
5014 Points
2398 Posts
Re: problem to load pages usually
Feb 20, 2012 01:06 PM|DMW|LINK
No you don't. You need to write an HttpModule if you want to provide general pre-processing for your pages, similar to those used by the Session, Caching or FormsAuthentication system.
If you write an HttpModule, hook into the pre-request processing then you can sort of the query string and then just let ASP.NET system continue to route the request to the handler. The event that you're looking to handle from the HttpApplication is PreRequestHandlerExecute (unless you want to fix the query string before things like security and caching occur, in which case you can hook up the BeginRequest event).
Dave
Provide an answer, and you enable a developer to code today. Show them how to find the answer using Google, and they can code forever.