例如,這是表:ASP.NET代碼隱藏C#:如何從代碼隱藏中獲取HTML表格的單元格值?
<table id="users">
<thead>
<tr class="ui-widget-header ">
<th>Name</th>
<th>Email</th>
<th>Password</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" value="Name1"/></td>
<td><input type="text" value="Email1"/></td>
<td><input type="text" value="Password1"/></td>
</tr> <tr>
<td><input type="text" value="Name2"/></td>
<td><input type="text" value="Email2"/></td>
<td><input type="text" value="Password2"/></td>
<tr>
</tbody>
</table>
那麼我想代碼隱藏來從表中的值..請幫助。
我試過foreach(Contron ctrl在users.Control)..但它不工作 – 2012-04-21 11:15:53