请问数据岛中的字段内容如何放入checkbox的value属性中[在线等]
「已注销」 2003-10-08 07:43:17
我用数据岛构造表格如下:
<table datasrc="#DocList" >
<thead>
</thead>
<tbody>
<tr bgcolor="#F5F5F5">
<td nowrap >
<input type="checkbox" Name="tSelect" value="我想让它等于Name字段,可是怎么都实现不了啊!"></td>
<td nowrap ><span datafld="Name" ><span></a></td>
<td nowrap><span datafld="SentiMent"></span></td>
<td nowrap ><span datafld="RegTime"></span></td>
<td nowrap ><span datafld="Points"></span></td>
<td nowrap ><span datafld="Property"></span></td>
</tr>
</tbody>
</table>
使用数据岛的时候 在<table>里 如果指定了表格的datasrc 那么 <span datafld="xx"></span> 可以方便的读取数据 共享表格的数据源
而我想把字段内容放入 input type=checkbox的value属性中 发现简直不可能实现
而如果如下:
<input type="checkbox" Name="tSelect" datasrc="#DocList" datafld="Name"/>
就不受表格约束了 它有独立的数据源了
我着急啊 望大虾们不吝赐教 刚学XML 还请多多照顾