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

如何获得自动生成的Tabel里的隐藏控件的值?
.net   动态生成如下表格,并动态的插入了隐藏控件,要如何才能够循环获得隐藏控件的值?
    <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 "   /> </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= "1 "   type= "text "   va