Ambiguous match found

Discussion in 'ASP .Net Building Controls' started by Sam, Aug 18, 2005.

  1. Sam

    Sam Guest

    I have the following WebControls:
    -----------------------------------------------------------
    Public class TemplateField
    Public property ItemTemplate as ITemplate
    End Class

    Public class foo inherits TemplateField
    Public shadows property ItemTemplate as fooTemplate
    End class

    Public class fooTemplate implements ITemplate
    end Class
    -----------------------------------------------------------

    Calling them with:
    ------------------------
    <asm:foo>
    <ItemTemplate />
    </asm:foo>
    ------------------------

    returns a "Ambigious match found"

    apparently by shadowing an inherited property i'm not totally hiding
    that inherited property.
    How do i hide the inherited property or how to a specify to the compiler
    that it should use the foo.ItemTemplate and not the inherited
    TemplateField.ItemTemplate?

    I'd appraciate any answer.
    Thanx.

    Sam.
     
    Sam, Aug 18, 2005
    #1
    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. Denon
    Replies:
    2
    Views:
    4,378
    Yuke Liew
    Jan 2, 2004
  2. Ben

    Ambiguous match found.

    Ben, Apr 27, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    7,915
    bond007
    Mar 23, 2010
  3. =?Utf-8?B?QWxleGFuZHJl?=

    Error: Ambiguous match found.

    =?Utf-8?B?QWxleGFuZHJl?=, Apr 23, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    16,601
    OnPreInit
    Oct 1, 2009
  4. Francois
    Replies:
    3
    Views:
    662
    Hans Kesting
    May 22, 2007
  5. aparna

    Ambiguous match found

    aparna, Mar 25, 2008, in forum: ASP .Net
    Replies:
    4
    Views:
    425
    aparna
    Mar 26, 2008
Loading...

Share This Page