日期:2014-05-18 浏览次数:20496 次
<asp:GridView ID="GridView1" runat="server"> <Columns> <asp:TemplateField HeaderText="ff"> <ItemTemplate> <asp:CheckBox runat="server" ID="cb1" Text="是" onclick="javascript:document.getElementById('text1').value=this.nextSibling.innerText"/> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <input type="text" id="text1" />