How to: Add CheckBox Web Server Controls to a Web Forms Page

JavaScript Editor jscript editor     Web designer 



Main Page

You can add a check box to a Web Forms page in two ways:

To add a CheckBox Web server control to a Web Forms page

  1. Add an <asp:CheckBox> element to the page. For syntax, see CheckBox Web Server Control Declarative Syntax.

  2. Specify a caption by setting the Text property.

  3. Optionally, change the orientation of the caption by setting the TextAlign property.

See Also



JavaScript Editor jscript editor     Web designer