Last post Mar 13, 2007 10:46 PM by davidbetz
Mar 05, 2007 04:25 PM|bmains|LINK
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.
Mar 13, 2007 10:46 PM|davidbetz|LINK
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.