Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
You can add a check box to a Web Forms page in two ways:
By adding an individual CheckBox Web server control.
By adding a CheckBoxList control and then adding individual list items to the control.
Note
This topic addresses how to add individual CheckBox controls to the page. For information about adding items to a CheckBoxList control, see How to: Add CheckBoxList Web Server Controls to a Web Forms Page.
To add a CheckBox Web server control to a Web Forms page
From the Standard tab of the Toolbox, drag a CheckBox control onto the page.
In the Properties window, specify a caption by setting the Text property.
Optionally, change the orientation of the caption by setting the TextAlign property.
See Also
Tasks
How to: Add CheckBoxList Web Server Controls to a Web Forms Page