源码参考http://blog.csdn.net/greatverve/archive/2008/12/01/3418755.aspx
包含了需要的数据库
前台
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChkBox.aspx.cs" Inherits="baseuse_ChkBox" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <title>GridView中的CheckBox用法</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:GridView ID="gv_chk" runat="server" AutoGenerateColumns="False">
- <Columns>
- <asp:BoundField DataField=