This one is pretty basic, but something to know if you have not directly done anything like this before.
If I have this we will get a checkbox list on the page,
<asp:CheckBoxList ID="AreaCheckBoxList" runat="server" >
<asp:listitem text="Format" />
<asp:listitem text="Content" />
<asp:listitem text="Other" />
</asp:CheckBoxList/>
What if I want to then add a link on the end of one or more of the items. At first this seems a bit puzzling. All we do is this which allows us to control the inner html of each of the list items,
<asp:CheckBoxList ID="AreaCheckBoxList" runat="server" >
<asp:listitem>
Format
<a href="www.link.com">Link Name</a>
</asp:listitem>
<asp:listitem text="Content" />
<asp:listitem text="Other" />
</asp:CheckBoxList/>
Sunday, March 9, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment