K
kurt sune
I am trying to do a custom control wich extends the ordinary listbox with
some features.
The class is declared thus:
ParseChildren(True), _
ToolboxBitmap(GetType(ListBox)), _
DefaultEvent("SelectedIndexChanged")> _
Public Class eListBox
Inherits System.Web.UI.WebControls.ListBox
In the assembly info I say:
<Assembly: TagPrefix("CustomControlLibrary", "mir")>
When I in the IDE add items via ListItem Collection Editor
The resulting errormessage in the control in the ide: Rendering of the
control fails in the IDE.
The HTML looks like this:
<mir:eListBox ID="EListBox1" runat="server">
<asp:ListItem>one</asp:ListItem>
<asp:ListItem>two</asp:ListItem>
</mir:eListBox>
And the errormessage in erorlist is:
Error 4 Type 'CustomControlLibrary.eListBox' does not have a public property
named 'ListItem'. C:\Inetpub\wwwroot\CCLtest\eListBox.aspx 18
Error 5 Element 'ListItem' is not a known element. This can occur if there
is a compilation error in the Web site.
C:\Inetpub\wwwroot\CCLtest\eListBox.aspx 18 18 C:\...\CCLtest\
Anybody any ideas?
some features.
The class is declared thus:
ParseChildren(True), _
ToolboxBitmap(GetType(ListBox)), _
DefaultEvent("SelectedIndexChanged")> _
Public Class eListBox
Inherits System.Web.UI.WebControls.ListBox
In the assembly info I say:
<Assembly: TagPrefix("CustomControlLibrary", "mir")>
When I in the IDE add items via ListItem Collection Editor
The resulting errormessage in the control in the ide: Rendering of the
control fails in the IDE.
The HTML looks like this:
<mir:eListBox ID="EListBox1" runat="server">
<asp:ListItem>one</asp:ListItem>
<asp:ListItem>two</asp:ListItem>
</mir:eListBox>
And the errormessage in erorlist is:
Error 4 Type 'CustomControlLibrary.eListBox' does not have a public property
named 'ListItem'. C:\Inetpub\wwwroot\CCLtest\eListBox.aspx 18
Error 5 Element 'ListItem' is not a known element. This can occur if there
is a compilation error in the Web site.
C:\Inetpub\wwwroot\CCLtest\eListBox.aspx 18 18 C:\...\CCLtest\
Anybody any ideas?