zyxt/Student/MyFile.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 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;
public partial class Student_MyFile : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.Page.IsPostBack)
{
if (Request.Cookies["Login"] == null || Request.Cookies["Login"].Value.ToString() != "Student")
{
Response.Write(MessageBox.ShowMessage("请选登录!", "../Login.aspx"));
}
//绑定我的资料信息
string sUid=Request.Cookies["Uid"].Value.ToString();
StudentMessage Sme = new StudentMessage();
StudentClass Stc = new StudentClass();
Sme = Stc.GetUserMessage(sUid);
this.txtUid.Text = Sme.sUid.ToString();
this.txtName.Text = Sme.sName.ToString();
string Sexs = Sme.sSex.ToString();
if (Sexs == "男")
{
RadioButton1.Checked = true;
RadioButton2.Checked = false;
}
else
{
RadioButton1.Checked = false;
RadioButton2.Checked = true;
}
this.DropDownList1.Text = Sme.sNianji.ToString();
this.DropDownList2.Text = Sme.sBanji.ToString();
this.txtHone.Text = Sme.sHone.ToString();
this.txtEmail.Text = Sme.sEmail.ToString();
}
}
protected void btnOk_Click(object sender, EventArgs e)
{
//更新资料
if (this.Page.IsValid)
{
string Sexs="";
if(RadioButton1.Checked)
{
Sexs="男";
}
else
{
Sexs="女";
}
StudentClass Stc = new StudentClass();
后面还有 16 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
