| ||||||||||||||||||||||||||||||||||||
HtmlInputCheckBox ClassSystem.Web.UI.HtmlControls Namespace Allows programmatic access to the HTML <input type=checkbox> element on the server.
|
||||||||||||||||||||||||||||||||||||
| 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 |
| Multicast | Name | Type |
|---|---|---|
| multicast | ServerChange | EventHandler |
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.
HtmlInputText HtmlInputButton HtmlInputRadioButton HtmlInputImage HtmlInputHidden HtmlInputFile
Check out related books at Amazon
© 2000-2008 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 aspxtreme