Wednesday, August 27, 2008

The RadioButton Control[Common Web Server Controls]

The RadioButton Control

1.The RadioButton control gives the user the ability to select between mutually exclusive RadioButton controls in a group. To group multiple RadioButton controls together, specify the same GroupName for each RadioButton control. Grouping radio buttons together only allows a mutually exclusive selection from the group.

Security Alert Populating the RadioButton control’s Text property with data from an untrusted source can create Cross Site Scripting (XSS) vulnerabilities. Use the HttpUtility.HtmlEncode or Server.HtmlEncode method to encode the untrusted data that is placed in the Text property.

2.The RadioButton control’s Text property specifies its caption. Use the TextAlign property
to specify the side that the caption appears on. The Checked property is used to set and get the status of the RadioButton control.

No comments: