asp.net.ph

HtmlInputRadioButton Class

System.Web.UI.HtmlControls Namespace


Allows programmatic access to the HTML <input type=radio> element on the server.

HtmlInputRadioButton Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HtmlInputRadioButton ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public Checked Boolean [ Get , Set ]
public Name String [ Get , Set ]
public Value String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected LoadPostData ( String postDataKey , NameValueCollection postCollection ) Boolean
protected OnServerChange ( EventArgs e ) Void
protected RaisePostDataChangedEvent ( ) Void
protected RenderAttributes ( HtmlTextWriter writer ) Void

Collapse   Events

Multicast Name Type
multicast ServerChange EventHandler

Remarks

Use the HtmlInputRadioButton control to create a radio button on a Web page.

You can group HtmlInputRadioButton controls together by specifying a common value for the Name property of each radio button that you want to include in the group.

NOTE: When you group HtmlInputRadioButton controls together, only one radio button in the group can be selected at a time.

To determine whether the control is selected, use the Checked property. If you have a group of radio button controls, you need to loop through the controls and test the Checked property of each control individually.

The HtmlInputRadioButton control provides a ServerChange event that is raised when the Checked property changes values between posts to the server. This allows you to define a custom handler to perform some action each time the event is raised.

The HtmlInputRadioButton control does not automatically post back to the server when clicked. You must provide another control on the Web page that supports posting to the server, such as an HtmlButton control, to send the state of the control back to the server.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see HtmlInputRadioButton in ASP.NET Syntax for HTML Controls.

See Also

HtmlInputText   HtmlInputButton   HtmlInputCheckBox   HtmlInputImage   HtmlInputHidden   HtmlInputFile Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph