nostrander
08-17-2006, 04:52 PM
I am workng on binding data to bind the "true" or "false" value in a xml document to the checked value for a checkbox. The check box is located with in a table.
here is what I have done:
<table width="400" align="center">
<tr>
<td width="100">Drama</td>
<td><input type="checkbox" datasrc="#Stud_Info" datafld="Drama"></td>
<td width="100">Football</td>
<td><input type="checkbox" datasrc="#Stud_Info" datafld="Football"></td>
</tr>
I have tried setting the datasrc of the table to the necessary datsrc and the datafld to the parent for the child elements as in the code below but doing it in this manner doesn't seem to work. Is there something I'm missing on the second example or is the first example the correct way to do this.
Thanks :confused:
<table width="400" align="center" datasrc="#Stud_Info" datafld="Student">
<tr>
<td width="100">Drama</td>
<td><input type="checkbox" datafld="Drama"></td>
<td width="100">Football</td>
<td><input type="checkbox" datafld="Football"></td>
</tr>
here is what I have done:
<table width="400" align="center">
<tr>
<td width="100">Drama</td>
<td><input type="checkbox" datasrc="#Stud_Info" datafld="Drama"></td>
<td width="100">Football</td>
<td><input type="checkbox" datasrc="#Stud_Info" datafld="Football"></td>
</tr>
I have tried setting the datasrc of the table to the necessary datsrc and the datafld to the parent for the child elements as in the code below but doing it in this manner doesn't seem to work. Is there something I'm missing on the second example or is the first example the correct way to do this.
Thanks :confused:
<table width="400" align="center" datasrc="#Stud_Info" datafld="Student">
<tr>
<td width="100">Drama</td>
<td><input type="checkbox" datafld="Drama"></td>
<td width="100">Football</td>
<td><input type="checkbox" datafld="Football"></td>
</tr>