how can i implement abstract method of usercontrol?

Discussion in 'ASP .Net Web Controls' started by ton, Apr 10, 2007.

  1. ton

    ton Guest

    Public MustInherit Class uc_navigator
    Inherits System.Web.UI.UserControl

    Public MustOverride Sub DoSearch()
    End Class

    i need implemt DoSearch method in .aspx that i put usercontrol on it.

    thank in advance
    ton, Apr 10, 2007
    #1
    1. Advertising

  2. If you intend uc_navigator to become a user control you should not use the
    keyword MustInherit. For a more detailed essay on abstract classes you might
    refer to this article:
    http://msdn2.microsoft.com/en-us/library/ms229047.aspx

    --
    HTH,
    Phillip Williams
    http://mcts-study-practices.com/
    http://www.webswapp.com


    "ton" wrote:

    > Public MustInherit Class uc_navigator
    > Inherits System.Web.UI.UserControl
    >
    > Public MustOverride Sub DoSearch()
    > End Class
    >
    > i need implemt DoSearch method in .aspx that i put usercontrol on it.
    >
    > thank in advance
    Phillip Williams, Apr 10, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sameer
    Replies:
    4
    Views:
    567
    Roedy Green
    Aug 31, 2005
  2. =?Utf-8?B?dG9u?=
    Replies:
    0
    Views:
    337
    =?Utf-8?B?dG9u?=
    Apr 10, 2007
  3. Chris Zopers

    Abstract method in non-abstract class

    Chris Zopers, Aug 8, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    351
    Göran Andersson
    Aug 8, 2008
  4. Stefan Ram
    Replies:
    27
    Views:
    705
    Stefan Ram
    Aug 17, 2009
  5. mix
    Replies:
    0
    Views:
    340
Loading...

Share This Page