日期:2014-05-19  浏览次数:20428 次

开了好几贴了,一直没有解决,取Table表中控件的值的问题
以下是通过服务端代码动态生成的一个Table,我想获取隐藏控件的值。
  (这种格式有点难搞)希望大家多多指教
  <table   id= "Table1 "   align= "center "   border= "1 "   width= "80% "   cellpadding= "0 "   cellspacing= "0 ">
<tr>
<td   colspan= "2 "   align= "center "   width= "50% "   style= "height:   22px "> 项目 </td>
<td   align= "center "   width= "30% "   style= "height:   22px "> 数量 </td>
</tr>
<tr>
<td   rowspan= "6 "   align= "center "> 工作覆盖面 </td>
</tr>
<tr>
<td> 辖区人口总数 <input   name= "hidden7 "   type= "hidden "   id= "hidden7 "   value= "7 "   /> </td>
<td   align= "center "> <input   name= "0 "   type= "text "   value= "0 "   id= "0 "   runat= "server "   /> </td>
</tr>
<tr>
<td> 辖区街道数 <input   name= "hidden8 "   type= "hidden "   id= "hidden8 "   value= "8 "   /> </td>
<td   align= "center "> <input   name= "1 "   type= "text "   value= "0 "   id= "1 "   /> </td>
</tr>
<tr>
<td> 辖区乡镇数 <input   name= "hidden9 "   type= "hidden "   id= "hidden9 "   value= "9 "   /> </td>
<td   align= "center "> <input   name= "2 "   type= "text "   value= "0 "   id= "2 "   /> </td>
</tr>
<tr>
<td> 工作覆盖面人口数 <input   name= "hidden10 "   type= "hidden "   id= "hidden10 "   value= "10 "   /> </td>
<td   align= "center "> <input   name= "3 "   type= "text "   value= "0 "   id= "3 "   /> </td>
</tr>
<tr>
<td> 覆盖率% <input   name= "hidden11 "   type= "hidden "   id= "hidden11 "   value= "11 "   /> </td>
<td   align= "center "> <input   name= "4 "   type= "text "   value= "0 "   id= "4 "   /> </td>
</tr>
<tr>
<td   rowspan= "5 "   align= "center "> 监护网服务 </td>
</tr>
<tr>
<td> 监护居(村)委会数 <input   name= "hidden12 "   type= "hidden "   id= "hidden12 "   value= "12 "   /> </td>
<td   align= "center "> <input   name= "0 "   type= "text "   value= "0 "   id= "0 "   /> </td>
</tr>
<tr>
<td> 监护病人数 <input   name= "hidden13 "   type= "hidden "   id= "hidden13 "   value= "13 "   /> </td>
<td   align= "center "> <input   name= "