To create a group of radio buttons, you specify the same name for the GroupName attribute of each radio button in the group. If more than one group is required in a single form specify a different group name for each group.
If you want a check box or radio button to be selected when it's initially displayed, set its Checked attribute to true. If the Checked attribute is set for more than one radio button in a group, then only the last one will be selected.
Basic syntax for check box:
<asp:CheckBox ID= "chkoption" runat= "Server"> </asp:CheckBox> |
<asp:RadioButton ID= "rdboption" runat= "Server"> </asp: RadioButton> |
Property
|
Description
|
Text
|
The text displayed next to the check box or radio button.
|
Checked
|
Specifies whether it is selected or not, default is false.
|
GroupName
|
Name of the group the control belongs to.
|
Comments
Post a Comment