Gewusst wie: zulassen von html-Steuerelement in einem listitem?

Den folgenden compile-Fehler Auftritt:

Parser-Fehlermeldung: Die 'Text' - Eigenschaft von 'asp:ListItem' nicht erlaubt, child-Objekte.

Quelle Fehler:

Line 468: </asp:ListItem>
Line 469: <asp:ListItem Value="3">
Line 470: Search only continuing stories with at least&nbsp; <input runat="server" id="episodetb" Value="0" style="width:50px" />
Line 471: episodes
Line 472: </asp:ListItem>

Als mein original-code ist wie folgt:

< asp:RadioButtonList ID="ContStoryRadioButtonList" DataTextFormatString=" {0}" CellPadding="2" runat="server">
<asp:ListItem Value="0">
Search singular and continuing stories
</asp:ListItem>
<asp:ListItem Value="1">
Search only singular stories
</asp:ListItem>
<asp:ListItem Value="2">
Search only continuing stories
</asp:ListItem>
<asp:ListItem Value="3">
Search only continuing stories with at least&nbsp; <input runat="server" id="episodetb" Value="0" style="width:50px" />
episodes
</asp:ListItem>
</asp:RadioButtonList >

Bitte helfen Sie mir mit diesem. thx im Voraus

InformationsquelleAutor Masud Rahman | 2010-09-16
Schreibe einen Kommentar