The RadioButtonList tag renders as a series of mutually-exclusive option button at run-time.
<RadioButtonList
AccessKey="string"
AppendDataBoundItems="True|False"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge| Inset|Outset"
BorderWidth="size"
CellPadding="integer"
CellSpacing="integer"
CssClass="string"
DataSourceID="string"
DataTextField="string"
DataTextFormatString="string"
DataValueField="string"
Enabled="True|False"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium| Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
Height="size"
ID="string"
Nullable="True|False"
RepeatColumns="integer"
RepeatDirection="Horizontal|Vertical"
RepeatLayout="Table|Flow"
Style="string"
TabIndex="integer"
TextAlign="Left|Right"
ToolTip="string"
Visible="True|False"
Width="size"
>
<listitem value="string" selected="True|False">Item1</listitem>
<listitem value="string">Item2</listitem>
...
</RadioButtonList>
<controldatasource>
tag will be appended to the list of items already defined in the control. This only applies if the control is bound to such a tag. The default value is False.<submitcommand>
which will be filled with this control's data on when the form is submitted and/or the parameter in the <selectcommand>
which will supply this control's data when the form is loaded. This attribute is required if the control will participate in operations with your form's data commands.<controldatasource>
tag, specify that tag's ID in this attribute. This attribute is required only if the control's data is supplied via a <controldatasource>
tag.<controldatasource>
this attribute specifies the column name in that datasource that supplies each list item's display text. This attribute is required if the control's data is supplied via a <controldatasource>
tag.<controldatasource>
this attribute specifies the column name in that datasource that supplies each list item's hidden value. This attribute is required only if the control's data is supplied via a <controldatasource>
tag.<listitem>
child tags which define the items that will appear in the list. The control can also be bound to a <controldatasource>
tag. To do so, specify the ID of the <controldatasource>
tag in the DataSourceId attribute, the name of the column in the data source that should supply the display text for each list item in the DataTextField attribute, and the column in the data source that should supply the hidden value of each list item in the DataValueField attribute.Back to top
<addform>
...
<table>
<tr>
<td>
<label target="txtFirstName" text="First Name" />
<textbox id="txtFirstName" datafield="FirstName"
datatype="string" />
</td>
</tr>
<tr>
<td>
<label target="rblColors" text="Favorite Color" />
<radiobuttonlist id="rblColors"
datafield="FavoriteColors" datatype="string">
<listitem value="#00FF00">Green</listitem>
<listitem value="#FF0000" selected="true">Red</listitem>
<listitem value="#0000FF">Blue</listitem>
</radiobuttonlist>
</td>
</tr>
<tr>
<td colspan="2">
<addbutton text="Add"/> <cancelbutton
text="Cancel"/>
</td>
</tr>
</table>
</addform>