2011年9月26日

js取得gridview中获取checkbox选中的值

摘要: js取得gridview中获取checkbox选中的值作者:天涯 来源:中国自学编程网发布日期:1220669715 代码如下:测试好半天,才出来,checkbox在第一列,for( i=1;i<document.all.GVmain.rows.length;i++){var cb=document.all.GVmain.rows(i).cells(0).children(0);if(cb.checked){temp0=document.all.GVmain.rows(i).cells(1).innerText;temp1=document.all.GVmain.rows(i).cell 阅读全文

posted @ 2011-09-26 21:22 不悔的青春 阅读(479) 评论(0) 推荐(0) 编辑

JavaScript获取GridView控件中选中行的行号和指定列的值

摘要: 首先在模板列中添加一个按钮用来选中行,页面有关代码如下:<asp:GridView ID="gdview" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Height="176px" Width="380px" OnRowDataBound="gdview_RowDataBound" OnSelectedIndexChanging=" 阅读全文

posted @ 2011-09-26 21:20 不悔的青春 阅读(1255) 评论(0) 推荐(0) 编辑

导航