dee*_*392 4 c# visual-web-developer
我想使用一个CheckBoxList控件,它使用打印输出HTML
<UL>
<LI><INPUT CHECKBOX></LI>
<LI>etc</LI>
</UL>
Run Code Online (Sandbox Code Playgroud)
对于标记.
但是,如果我尝试以下内容:
<asp:CheckBoxList ID="lstShipsInScope" runat="server"
DataSourceID="ShipsInScope" DataTextField="Ship_Name" DataValueField="Ship_Id"
ondatabound="lstShipsInScope_DataBound" AutoPostBack="True"
RepeatLayout="unorderedlist" RepeatDirection="horizontal">
</asp:CheckBoxList>
Run Code Online (Sandbox Code Playgroud)
我明白了:
Parser Error Message: Cannot create an object of type 'System.Web.UI.WebControls.RepeatLayout' from its string representation 'unorderedlist' for the 'RepeatLayout' property.
Run Code Online (Sandbox Code Playgroud)
鉴于无序列表是RepeatLayout属性的值,这似乎很愚蠢.Flow工作,它们全部放在一个范围内,表格也是如此,但我想使用无序列表并自己进行样式设置.
归档时间: |
|
查看次数: |
3403 次 |
最近记录: |