problem to load pages usually RRS feed

  • Question

  • User-200424517 posted


    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.



    Monday, January 2, 2012 7:46 AM

All replies

  • User-380515194 posted


    Please post your code that you have used to do this. Post every code that you have till now.

    Monday, January 2, 2012 12:35 PM
  • User1109032460 posted

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

    Monday, February 20, 2012 1:06 PM