N
~~~ .NET Ed ~~~
That is the question indeed. I have a user control that needs to render some
content, the content is actually made of items. Because of that I would like
to use <Asp:ListItem> as inner contents of my user control as follows:
<uc:MyControl runat=server id=MyControl1>
<asp:ListItem text="item text" value="item value">
</uc:MyControl>
My question is whether that is possible. And if so do I need to create my
own ListItem user control? or can I use the regular ListItem.
Then, how do I access the attributes of these ListItem inner contents from
within the code of my user control?
Thx,
Emilio
content, the content is actually made of items. Because of that I would like
to use <Asp:ListItem> as inner contents of my user control as follows:
<uc:MyControl runat=server id=MyControl1>
<asp:ListItem text="item text" value="item value">
</uc:MyControl>
My question is whether that is possible. And if so do I need to create my
own ListItem user control? or can I use the regular ListItem.
Then, how do I access the attributes of these ListItem inner contents from
within the code of my user control?
Thx,
Emilio