Last post Feb 20, 2012 01:06 PM by DMW
Jan 02, 2012 07:46 AM|AliProfessional|LINK
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.
Jan 02, 2012 12:35 PM|hardikyano|LINK
Please post your code that you have used to do this. Post every code that you have till now.
Feb 20, 2012 01:06 PM|DMW|LINK
I need to write httphandler
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).