Dynamically preselecting ASP.NET CheckBox controls
You can let the server decide whether to select certain CheckBox controls when the ASP.NET page is loaded in a browser.
Before you begin, you must define a DataSet or other source of dynamic content for the checkboxes. For more information, see Defining a recordset. Ideally, the source of content should contain Boolean data, such as Yes/No or true/false.
To dynamically preselect an ASP.NET checkbox:
- Select a CheckBox form control on the ASP.NET page.
- In the Property inspector, select the Dynamic option.
The Dynamic CheckBox dialog box appears.
- Complete the dialog box and click OK.
For instructions, click the Help button in the dialog box.
The checkbox will appear selected or not selected, depending on the data, when the page is loaded in a browser.
- Dynamically preselecting HTML checkboxes