如何在每個列表項旁邊放置按鈕?如何在ListItem旁邊放置按鈕
<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>
每次我嘗試插入列表項後,或者在裏面,我得到一個解析錯誤。我需要一個按鈕。
任何想法?
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>
可以粘貼渲染輸出(HTML):例如,在使用
類? – Sowmya
@穆罕默德我認爲這是不可能的。 – freebird
@SowmyaShivaram爲你粘貼HTML。 – sprocket12