System.Web.UI.WebControls.RepeatLayout.Table Field

Items are displayed in a table.

Syntax

RepeatLayout Table

Remarks

The following example shows markup that is rendered for a System.Web.UI.WebControls.CheckBoxList control whose CheckBoxList.RepeatLayout property is set to RepeatLayout.Table.

Note:

This option causes the control to render HTML that might not conform to accessibility standards. For more information, see Accessibility in Visual Studio 2010 and ASP.NET 4.

Example

<table id="ctl00_MainContent_CheckBoxList2">
  <tr>
    <td>
      <input id="ctl00_MainContent_CheckBoxList2_0" type="checkbox"
        name="ctl00$MainContent$CheckBoxList2$0" value="Item 1" />
      <label for="ctl00_MainContent_CheckBoxList2_0">Item 1</label>
    </td>
  </tr>
  <tr>
    <td>
      <input id="ctl00_MainContent_CheckBoxList2_1" type="checkbox"
        name="ctl00$MainContent$CheckBoxList2$1" value="Item 2" />
      <label for="ctl00_MainContent_CheckBoxList2_1">Item 2</label>
    </td>
  </tr>
  <tr>
    <td>
      <input id="ctl00_MainContent_CheckBoxList2_2" type="checkbox"
        name="ctl00$MainContent$CheckBoxList2$2" value="Item 3" />
      <label for="ctl00_MainContent_CheckBoxList2_2">Item 3</label>
    </td>
  </tr>
</table>

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0