Dynamically preselecting ASP.NET CheckBox controls

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:

  1. Select a CheckBox form control on the ASP.NET page.
  2. In the Property inspector, select the Dynamic option.

    The Dynamic CheckBox dialog box appears.

  3. 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.

Related topics

  • Dynamically preselecting HTML checkboxes

Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly
Building ColdFusion Applications Rapidly
Building ASP.NET Applications Rapidly
Building ASP and JSP Applications Rapidly