Results 1 to 5 of 5

Thread: override

  1. #1
    Fanatic Member
    Join Date
    Dec 02
    Location
    London
    Posts
    678

    override

    Hi,
    Can you write the following code into vb.net ?

    public override void VerifyRenderingInServerForm(Control control)
    {
    }

    This is what I have done but it gives an error VerifyRenderingInServerForm (sub 'VerifyRenderingInServerForm' can not be declared 'overrides' because it does not override a sub in a base class)
    Public Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)

    End Sub

  2. #2
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 01
    Location
    Derby, UK
    Posts
    1,090

    Re: override

    From DeveloperFusion Convertor
    VB Code:
    1. Public Overloads Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)
    2. End Sub
    As the error says does the function override a function in an inherited base class?

  3. #3
    Fanatic Member
    Join Date
    Dec 02
    Location
    London
    Posts
    678

    Re: override

    I thought VerifyRenderingInServerForm is a built in function, so I would not know.
    p.s. your code gives the same error as before.
    Thanks

  4. #4
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 01
    Location
    Derby, UK
    Posts
    1,090

    Re: override

    Aye you're right never heard of that before.

    Is this any use to you from MSDN

  5. #5
    ASP.NET Moderator mendhak's Avatar
    Join Date
    Feb 02
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: override

    VB Code:
    1. Public Overrides Sub VerifyRenderingInServerForm(ByVal control As System.Web.UI.Control)
    2.         MyBase.VerifyRenderingInServerForm(control)
    3.     End Sub

    Ensure that the class inherits from System.Web.Ui.Page.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •