62,268
社区成员
发帖
与我相关
我的任务
分享
SqlConnection conn = new SqlConnection(ConnectionString);
DataSet ds = new DataSet();
string cmd = "SELECT [ID],[Datetime],[UserName],[Fault],[Content],[Telephone],[Mark] FROM [Report].[dbo].[Reports] order by datetime Desc";
ds = SqlHelper.ExecuteDataset(conn, CommandType.Text, cmd);
GridView_List.DataSource = ds.Tables[0];
GridView_List.DataBind();
<Columns>
<asp:TemplateField>
<headertemplate>
<asp:checkbox id="checkall" runat="server" />
</headertemplate>
<itemstyle width="20px" />
<itemtemplate>
<input type="hidden" id="grdGoodID" value="<%# Eval("ID") %>" />>" />
</itemtemplate>
</asp:TemplateField>