I want to create my own object (dll) that inherits from System.Web.UI.Page so that I can do some custom pre/post processing of a call to a web page that inherits from my class. So for example, lets say you have the following page defined:

[code]
Partial Class TestPage1
Inherits MyCustomDLL.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

End Sub

Public Function doSomething(param1 as string, param2 as string) as String

End Function

End Class
[code]

So, when someone view this page in a web browser, my DLL should be able to grab the Request object, do something with it, and then pass control to the page. The page will do what it needs to do, and then pass control back to my DLL to issue the final Response object.

Is this possible? Any pointers would be appreciated.