ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 545
نمايش فراداده

HtmlInputCheckBoxdisposable

System.Web.UI.HtmlControls (system.web.dll)class

This class represents the HTML <input type=checkbox> tag and indicates the user's selection through its Checked property. You can also react to the ServerChange event, which will fire only after a postback is triggered (for example, by clicking a submit button). Note that this control does not have an associated text label.

public class 

HtmlInputCheckBox : HtmlInputControl, System.Web.UI.IPostBackDataHandler { // Public Constructors public

HtmlInputCheckBox ( ); // Public Instance Properties public bool

Checked {set; get; } // Protected Instance Methods protected override void

OnPreRender (EventArgs

e ); // overrides System.Web.UI.Control protected virtual void

OnServerChange (EventArgs

e ); // Events public event EventHandler

ServerChange ; }

Hierarchy

System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor) HtmlControl(System.Web.UI.IAttributeAccessor) HtmlInputControl HtmlInputCheckBox(System.Web.UI.IPostBackDataHandler)