Teacher/AddStScore.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class Teacher_AddStScore : System.Web.UI.Page
{
Alert alert = new Alert();
data data = new data();
data mydata = new data();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DropDownList2.DataSource = mydata.GetDataReader("select * from Course ");
DropDownList2.DataTextField = "courseName";
DropDownList2.DataValueField = "id";
DropDownList2.DataBind();
DropDownList3.DataSource = mydata.GetDataReader("select * from student ");
DropDownList3.DataTextField = "xuehao";
DropDownList3.DataValueField = "UserName";
DropDownList3.DataBind();
if (!string.IsNullOrEmpty(Request.QueryString["id"]))
{
SqlDataReader ds =null ;
ds = mydata.GetDataReader("select * from stscore where id="+Request.QueryString["id"]+"");
if (ds.Read())
{
DropDownList2.SelectedItem.Text = ds["courseName"].ToString();
DropDownList3.SelectedItem.Text = ds["stxuehao"].ToString();
TextBox1.Text = ds["xueqi"].ToString();
TextBox2.Text = ds["score"].ToString();
txtds.Text = ds["remark"].ToString();
LinkButton1.Text = "修改";
}
}
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(Request.QueryString["id"]))
{
string bj = null;
后面还有 41 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
