Although checkboxes are most typically used to show the state of Yes/No data fields, they can
also be tied to text data fields and selected if the field is equal to a given value. When applying
the Dynamic CheckBox server behavior, choose the text field and enter the exact text string in the Equal To
field.
Radio buttons
Radio buttons provide a good way to represent a field that has a limited number of options. Suppose your
data source includes a Comment Type field, which offers three possible choices: Positive (Pos), Negative
(Neg), and Other (Other). To illustrate which type of comment a user submits, your Web application might
display a series of three radio buttons, one for each type. If the radio buttons are dynamically tied to the
Comment Type field, they show the correct type for each comment. Like checkboxes, radio buttons are very
easy to modify??”one click and you??™re done. To link radio buttons to dynamic data, follow these steps:
1. Select a group of radio buttons on a dynamic page with an available data source.
2. From the Server Behaviors panel, choose Dynamic Form Elements ??? Dynamic Radio Buttons.
The Dynamic Radio Buttons dialog box appears, as shown in Figure 23-12.
3. Verify that your selected form element is displayed in the Radio Button Group list.
Pages:
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296