Proprietà RepeatLayout di ASP.NET
Definizione e uso
L'attributo RepeatLayout viene utilizzato per impostare o ottenere come visualizzare gli elementi nel CheckBoxList.
Sintassi
<asp:CheckBoxList RepeatLayout="mode" runat="server"> Alcuni contenuti </asp:CheckBoxList >
Proprietà | Descrizione |
---|---|
mode |
Stabilisce la disposizione degli elementi nel CheckBoxList. Valori possibili:
|
Esempio
Ecco un esempio che imposta RepeatLayout del controllo CheckBoxList:
<form runat="server"> <asp:CheckBoxList id="cb1" runat="server"> RepeatLayout="Flow"> Alcuni contenuti </asp:CheckBoxList> </form>
Esempio
- Impostare RepeatLayout del controllo CheckBoxList