Results 1 to 3 of 3

Thread: Calling MyBase's MyBase?!?

  1. #1

    Thread Starter
    Hyperactive Member MetallicaD's Avatar
    Join Date
    Feb 2001
    Location
    Tallahassee, FL
    Posts
    488

    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]

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Location
    Fort Lauderdale, FL USA
    Posts
    112
    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?
    Damonous

  3. #3

    Thread Starter
    Hyperactive Member MetallicaD's Avatar
    Join Date
    Feb 2001
    Location
    Tallahassee, FL
    Posts
    488
    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
  •  



Click Here to Expand Forum to Full Width