|
-
Nov 25th, 2009, 01:30 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] How to make my own custom "page" object?
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|