|
-
Feb 18th, 2003, 10:59 AM
#1
Thread Starter
Hyperactive Member
Calling MyBase's MyBase?!?
hello.. I have a BasePage that inherits from the Web.UI.Page class. I have put some excellent functionality in that BasePage that I need to carry forward to another inheriting page, the BasePopUpPage that will inherit from my BasePage..
In the CreateChildControls() routine, I need to override this in my basePopUpPage because in the BasePage, this handles loading the header/footer for my pages.. however, on my PopUpPages, i dont want the header and footer.. however, I do need to call the Web.UI.Page class from the BasePage Class.. so basically, How can I override the BasePage's CreateChildControls() and still call mybase.mybase.createchildcontrols() w/out calling the MyBase.CreateChildControls?
understand?
Thanks
-mcd
[vbcode]
'*****************************
MsgBox "MCD :: [email protected]", vbInformation + vbOKOnly, "User"
'*****************************
[/vbcode]
-
Feb 20th, 2003, 12:24 AM
#2
Lively Member
I think I understand what you're trying to say. Corrrect me if I'm wrong.
Code:
Public Class BasePage()
Pubic Overridable Sub CreateChildControls()
End Sub
End Class
Public Class basePopUpPage
Inherits BasePage
Public Overrides Sub CreateChildControls()
End Sub
End Class
Is that what you were looking for?
-
Feb 20th, 2003, 09:13 AM
#3
Thread Starter
Hyperactive Member
Thanks for the reply.. but there is a twist to this that I am having problems with.... In the BasePage class, the createchildcontrols() routine calls myBase.CreateChildControls() (which resides in Web.UI.Page).. i dont knwo what goes on in that routing in the base, but its what renders those darn controls.. so, from the BasePopUpPage, how can i call the Web.UI.Page.CreateChildControls() function? mybase.creat... wont work because it would call BasePage.. not Web.UI.Page
Any suggestions?
-mcd
[vbcode]
'*****************************
MsgBox "MCD :: [email protected]", vbInformation + vbOKOnly, "User"
'*****************************
[/vbcode]
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
|