TRadioButton is similar to TCheckBox except that several TRadioButton components can be grouped together by setting the same GroupName property. Only one TRadioButton component can be checked within a group.
To determine whether the TRadioButton component is checked, test the Checked property. The OnCheckedChanged event is raised when the state of the TRadioButton component changes between posts to the server. You can provide an event handler for the OnCheckedChanged event to perform a specific task when the state of the TRadioButton component changes between posts to the server.
Note, Text will be HTML encoded before it is displayed in the TRadioButton component. If you don't want it to be so, set EncodeText to false.
Namespace: System.Web.UI.WebControls
Properties
GroupName, string, kept in viewstate
Gets or sets the name of the group that the radio button belongs to.
Note only when a radio button is changed from unchecked to checked will it trigger postdatachanged event (OnCheckedChanged). This method is primarly used by framework developers.
return:
whether the data of the component has been changed