V
Vi
Hi,
I'm trying to create a custom DropDownList Control. Everything seems to be
OK until I'm adding ListItem-s to the control. I'm getting the error: " Could
not load type ControlLib.ListItem from assembly ControlLib" (ControlLib is
the project where the custom DropDown control is defined).
Here's the code:
<lib:CustomDropDownList id="list1" runat="server" BackColorOn="128, 255, 128">
<lib:ListItem Value="0" Selected="True">-- Select --</lib:ListItem>
<lib:ListItem Value="1">Value 1</lib:ListItem>
<lib:ListItem Value="2">Value 2</lib:ListItem>
<lib:ListItem Value="3">Value 3</lib:ListItem>
</lib:CustomDropDownList>
I guess I have to define ListItem in ControlLib as well, but not sure how.
Thank you in advance
I'm trying to create a custom DropDownList Control. Everything seems to be
OK until I'm adding ListItem-s to the control. I'm getting the error: " Could
not load type ControlLib.ListItem from assembly ControlLib" (ControlLib is
the project where the custom DropDown control is defined).
Here's the code:
<lib:CustomDropDownList id="list1" runat="server" BackColorOn="128, 255, 128">
<lib:ListItem Value="0" Selected="True">-- Select --</lib:ListItem>
<lib:ListItem Value="1">Value 1</lib:ListItem>
<lib:ListItem Value="2">Value 2</lib:ListItem>
<lib:ListItem Value="3">Value 3</lib:ListItem>
</lib:CustomDropDownList>
I guess I have to define ListItem in ControlLib as well, but not sure how.
Thank you in advance