資源簡介

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Web;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Data;
using?System.Data.SqlClient;
public?partial?class?adminlookbukao?:?System.Web.UI.UserControl
{
????SqlConnection?cnn;
????SqlCommand?com;
????string?strconn?=?“Data?Source=WIN10-708281642;Initial?Catalog=user;Integrated?Security=True“;
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
????????if?(!IsPostBack)
????????{
????????????bind();
????????}
????}
????public?void?bind()
????{
????????//string?sname?=?Session[“name“].ToString();
????????cnn?=?new?SqlConnection(strconn);
????????string?strcomd?=?“SELECT?課程名稱成績學生姓名班級?FROM?dbo.成績錄入表?where?班級=‘“?+?textclass?.Text+?““?+?“‘?and?成績<60“;
????????SqlDataAdapter?da?=?new?SqlDataAdapter(strcomd?cnn);
????????DataSet?ds?=?new?DataSet();
????????cnn.Open();
????????da.Fill(ds);
????????GridView1.DataSource?=?ds;
????????GridView1.DataKeyNames?=?new?string[]?{?“課程編號“?};//主鍵
????????GridView1.DataBind();
????????cnn.Close();
????}
????protected?void?GridView1_RowDataBound(object?sender?GridViewRowEventArgs?e)
????{
????????if?(e.Row.RowIndex?!=?-1)
????????{
????????????int?indexID?=?this.GridView1.PageIndex?*?this.GridView1.PageSize?+?e.Row.RowIndex?+?1;
????????????e.Row.Cells[0].Text?=?indexID.ToString();
????????}
????}
????protected?void?GridView1_RowEditing(object?sender?GridViewEditEventArgs?e)
????{
????????GridView1.EditIndex?=?e.NewEditIndex;
????????bind();
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-07-14?16:42??網上成績查詢系統\
?????文件?????????887??2018-07-11?21:52??網上成績查詢系統\adminlookbukao.ascx
?????文件????????1641??2018-07-11?21:52??網上成績查詢系統\adminlookbukao.ascx.cs
?????文件?????????412??2018-07-11?21:49??網上成績查詢系統\adminlookbukao.aspx
?????文件?????????286??2018-07-11?21:48??網上成績查詢系統\adminlookbukao.aspx.cs
?????文件????????1460??2018-07-06?22:51??網上成績查詢系統\adminlookstudent.ascx
?????文件????????2727??2018-07-06?23:09??網上成績查詢系統\adminlookstudent.ascx.cs
?????文件?????????424??2018-07-06?22:46??網上成績查詢系統\adminlookstudent.aspx
?????文件?????????288??2018-07-06?22:22??網上成績查詢系統\adminlookstudent.aspx.cs
?????文件????????1520??2018-07-06?21:56??網上成績查詢系統\adminlookteacher.ascx
?????文件????????2749??2018-07-06?21:52??網上成績查詢系統\adminlookteacher.ascx.cs
?????文件?????????424??2018-07-06?19:00??網上成績查詢系統\adminlookteacher.aspx
?????文件?????????288??2018-07-06?19:00??網上成績查詢系統\adminlookteacher.aspx.cs
?????文件?????????393??2018-06-26?10:56??網上成績查詢系統\adminstudent.aspx
?????文件?????????294??2018-06-26?11:28??網上成績查詢系統\adminstudent.aspx.cs
?????文件?????????396??2018-07-11?22:18??網上成績查詢系統\adminzhuce.aspx
?????文件?????????282??2018-07-11?22:17??網上成績查詢系統\adminzhuce.aspx.cs
?????目錄???????????0??2018-06-26?16:04??網上成績查詢系統\App_Code\
?????文件????????1956??2013-03-23?21:00??網上成績查詢系統\App_Code\DB.cs
?????文件????????1070??2018-06-26?16:04??網上成績查詢系統\App_Code\SQLClass.cs
?????目錄???????????0??2018-07-14?16:42??網上成績查詢系統\App_Data\
?????文件?????3145728??2018-07-14?16:39??網上成績查詢系統\App_Data\user.mdf
?????文件?????1048576??2018-07-14?16:39??網上成績查詢系統\App_Data\user_log.ldf
?????文件????????1040??2018-07-06?18:01??網上成績查詢系統\bukao.ascx
?????文件????????1638??2018-07-06?17:53??網上成績查詢系統\bukao.ascx.cs
?????文件?????????355??2018-07-06?17:43??網上成績查詢系統\bukao.aspx
?????文件?????????277??2018-07-06?17:43??網上成績查詢系統\bukao.aspx.cs
?????文件????????3811??2018-07-14?12:00??網上成績查詢系統\Default.aspx
?????文件???????13466??2018-07-14?12:43??網上成績查詢系統\Default.aspx.cs
?????文件?????????459??2018-07-11?22:18??網上成績查詢系統\Default2.aspx
?????文件?????????346??2018-07-11?18:40??網上成績查詢系統\Default2.aspx.cs
............此處省略68個文件信息
- 上一篇:dace 中文說明.rar
- 下一篇:圖像去模糊代碼
評論
共有 條評論