如何在每个列表项旁边放置一个按钮?
<asp:CheckBoxList ID="lstBrembo" runat="server">
<asp:ListItem Text="Popular" Value="9"></asp:ListItem> // <--- button here
<asp:ListItem Text="Pads" Value="70"></asp:ListItem>
<asp:ListItem Text="Discs" Value="72"></asp:ListItem>
<asp:ListItem Text="Drums" Value="73"></asp:ListItem>
<asp:ListItem Text="Handed Discs" Value="109"></asp:ListItem>
<asp:ListItem Text="Brembo Max" Value="108"></asp:ListItem>
</asp:CheckBoxList>
每次我尝试在列表项之后或在其中插入 a 时,都会出现解析错误。我需要一个按钮。
有任何想法吗?
HTML:
<div id="MainContentPlaceHolder_pnlBrembo" class="groupbox">
<fieldset>
<legend>
BREMBO
</legend>
<input type="submit" name="ctl00$MainContentPlaceHolder$ctl02" value="select all" class="selectAllButton" />
<table id="MainContentPlaceHolder_lstBrembo">
<tr>
<td><input id="MainContentPlaceHolder_lstBrembo_0" type="checkbox" name="ctl00$MainContentPlaceHolder$lstBrembo$0" value="9" /><label for="MainContentPlaceHolder_lstBrembo_0">Popular</label></td>
</tr><tr>
<td><input id="MainContentPlaceHolder_lstBrembo_1" type="checkbox" name="ctl00$MainContentPlaceHolder$lstBrembo$1" value="70" /><label for="MainContentPlaceHolder_lstBrembo_1">Pads</label></td>
</tr><tr>
<td><input id="MainContentPlaceHolder_lstBrembo_2" type="checkbox" name="ctl00$MainContentPlaceHolder$lstBrembo$2" value="72" /><label for="MainContentPlaceHolder_lstBrembo_2">Discs</label></td>
</tr><tr>
<td><input id="MainContentPlaceHolder_lstBrembo_3" type="checkbox" name="ctl00$MainContentPlaceHolder$lstBrembo$3" value="73" /><label for="MainContentPlaceHolder_lstBrembo_3">Drums</label></td>
</tr><tr>
<td><input id="MainContentPlaceHolder_lstBrembo_4" type="checkbox" name="ctl00$MainContentPlaceHolder$lstBrembo$4" value="109" /><label for="MainContentPlaceHolder_lstBrembo_4">Handed Discs</label></td>
</tr><tr>
<td><input id="MainContentPlaceHolder_lstBrembo_5" type="checkbox" name="ctl00$MainContentPlaceHolder$lstBrembo$5" value="108" /><label for="MainContentPlaceHolder_lstBrembo_5">Brembo Max</label></td>
</tr>
</table>
</fieldset>
</div>