asp.net.ph

HtmlInputCheckBox Class

System.Web.UI.HtmlControls Namespace


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

HtmlInputCheckBox Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HtmlInputCheckBox ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public Checked Boolean [ 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 HtmlInputCheckBox control to allow the user to select a true or false state.

To determine whether the control is selected, use the Checked property.

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

The HtmlInputCheckBox 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 HtmlInputCheckBox in ASP.NET Syntax for HTML Controls.

See Also

HtmlInputText   HtmlInputButton   HtmlInputRadioButton   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