Question 1:<table border="1">
<tr>
<td><input type="button" value="Show row index" onclick="alert(this.parentNode.parentNode.rowIndex)"></td>
</tr>
<tr>
<td><input type="button" value="Show row index" onclick="alert(this.parentNode.parentNode.rowIndex)"></td>
</tr>
</table>

解决方案 »

  1.   

    第二个问题有谁能回答
    就是动态生成  服务器控件"file"
      

  2.   

    第二个问题有谁能回答
    就是动态生成 服务器控件"file"======================================
    ASP.Net?动态生成服务器控件,至少需要POST BACK的,客户端脚本做不到
      

  3.   

    Question 2:new HtmlTextWriter(this.Context.Response.Output).WriteLineNoTabs("<input type='file' id='file' runat='server'>");