Changing the way the Page works RRS feed

  • Question

  • User-294030300 posted


    I was wondering if it was possible to change the Page class through an HTTPHandler or Module.  In essence, I want to replace this with a test handler/module so I could do unit testing.  I don't think it's possible, but I want to essentially return a page class that has a dummy request/response collection, dummy session, etc.

    Any ideas if this is even possible?  I imagine it would be through the PageHandlerFactory, or an HTTP module.

    Monday, March 5, 2007 4:25 PM

All replies

  • User1702542823 posted

    I'm kinda getting the feeling you're not understanding what you can do with HttpHandlers... they are seriously powerful.  You don't need a real page to have a page.  You can have a path like /mystuff/2007/03/MyDocument.xml and it doesn't at all have to exist.  All you have to do is catch all requests and play with it.

    Here's what I mean... if that's not what you mean, I'm sure that page will help you out anyhow.


    Tuesday, March 13, 2007 10:46 PM