hi,

Lets consider if i have to display my data dynamically using ASP ( the no of data to be displayed is an unknown), My data will be in this format

Checkbox_1 data_1a data_1b
Checkbox_2 data_2a data_2b
. . . .
. . . .
. . . .
Checkbox_n data_na data_nb

submit_button

====================================================
conditions:

1) the data field will be disabled unless otherwise the corresponding checkbox is checked

2) at least one checkbox must be checked in order to enable the submit button

=======================================================

a) Data Field

The data field will be filled with the data paging from the SQL database with the call statement RS("name").


b) Form name

The name of the data field ( form ) will be named accordingly to the no-th associated with the name in the SQL i.e. RS ("no")

For example :

<input type="text" disabled name="<% =RS("no")%>" value="<% =RS("name")%>" size="16">


c) Checkbox

Again, the name of the checkbox will be named accordingly to the no-th associated with the name in the SQL i.e. RS ("no")

For example
<input type="checkbox" onclick="call_JS_function" name="<% =RS("no")%>" value="ON">

======================================================


i humbly request the experts to give me advice and guide.

Thank you in advance and have a nice day.