Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Ambiguous match found

Reply
Thread Tools

Ambiguous match found

 
 
Sam
Guest
Posts: n/a
 
      08-18-2005
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ambiguous match found. Ben ASP .Net 4 03-23-2010 06:57 AM
Error: Ambiguous match found. =?Utf-8?B?QWxleGFuZHJl?= ASP .Net 4 10-01-2009 01:12 PM
Ambiguous match found aparna ASP .Net 4 03-26-2008 11:28 AM
parser error message: Ambiguous match found Francois ASP .Net 3 05-22-2007 03:29 PM
Parser Error Message: Ambiguous match found. Denon ASP .Net 2 01-02-2004 09:19 AM



Advertisments