Admin/XsEdit.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 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.IO;
public partial class Admin_XsEdit : System.Web.UI.Page
{
public string strPic = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
//绑定班级信息
DropDownList1.DataTextField = "班级名称";
DropDownList1.DataValueField = "班级代码";
DropDownList1.DataSource = db.GetData("select * from 班级");
DropDownList1.DataBind();
if (Request.QueryString["ID"] != null)
{
//显示当前的学生信息
DataTable dt = new DataTable();
TextBox1.ReadOnly = true;
dt = db.GetData("select * from 学生 where 学号=" + Request.QueryString["ID"] + "");
if (dt.Rows.Count > 0)
{
this.TextBox1.Text = dt.Rows[0]["学号"].ToString();
this.TextBox2.Text = dt.Rows[0]["姓名"].ToString();
this.TextBox3.Text = dt.Rows[0]["性别"].ToString();
this.TextBox4.Text =dt.Rows[0]["入学时间"].ToString();
this.DropDownList1.SelectedValue = dt.Rows[0]["班级代码"].ToString();
strPic = @"STU\" + dt.Rows[0]["照片"].ToString();
this.Hidden1.Value = dt.Rows[0]["照片"].ToString();
}
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
//跳转页面
Response.Redirect("XsList.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{
string FileName = "";
string FileName1;
string DPath;
if (Server.MapPath("").Substring(Server.MapPath("").Length - 1, 1) == @"\")
{
DPath = Server.MapPath("");
}
后面还有 47 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。