ambiguous match found

S

Sam

see code & error below.

i noticed that the page parser only calles the set property so i decided
to program it like below so that the set property can be called by the
page parser while the get property is still availible for programming.

Sam.
-----------------------------------------------------------------------
<PersistenceMode(PersistenceMode.InnerProperty)> _
Public WriteOnly Property Element() As Element
Set(ByVal element As Element)
_elements.Add(element)
End Set
End Property

<PersistenceMode(PersistenceMode.InnerProperty)> _
Public ReadOnly Property element(ByVal i As integer) As Element
Get
Return _elements.Item(i)
End Get
End Property
-----------------------------------------------------------------------

Parser Error Message: Ambiguous match found.

Source Error:


Line 5: <mylib:myclass id="id" runat="server">
Line 6: <Source>Sams Source</Source>
Line 7: <Element label="Sams Label 1" />
Line 8: <Element label="Sams Label 2" />
Line 9: <Element label="Sams Label 3" />

Source File: /WebSite2/Employees.aspx Line: 7
-----------------------------------------------------------------------
 
D

Dale

Look up Microsoft knowledge base article 823194 and read this article on
creating custom collection classes. They solved the ambiguous match found
error for me.

HTH
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,888
Messages
2,569,965
Members
46,294
Latest member
HollieYork

Latest Threads

Top