Backup/XDF/Admin/TeacherInfo.aspx.cs

(开头部分) 14KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using BLL;

namespace XDF.Admin
{
    public partial class TeacherInfo : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {

                if (Session["UserRole"] == null)
                    Response.Redirect("~/Login.aspx");
                string teaid = Session["TeacherID"].ToString();
                string baseid = teaid.Substring(0, 4);
                string sex = getSex(teaid);
                string state = getState(teaid);
                string introduce = getIntroduce(teaid);
                string basename = getBaseName(baseid);
                string address = getAddress(teaid);
                string teachgrade = getTeachGrade(teaid);
                string teachsubject = getTeachSubject(teaid);
                string teaname = getTeaName(teaid);
                string degree = getDegree(teaid);
                string phone = getPhone(teaid);
                string email = getEmail(teaid);
                string DOB = getDOB(teaid);
                LabelAddress.Text = address;
                LabelBaseName.Text = basename;
                DropDownListDegree.SelectedValue = degree;
                LabelDOB.Text = DOB;
                LabelEmail.Text = email;
                LabelIntroduce.Text = introduce;
                LabelSex.Text = sex;
                DropDownListTeachGrade.SelectedValue = teachgrade;
                DropDownListTeachSubject.SelectedValue = teachsubject;
                DropDownListState.SelectedValue = state;
                LabelTeaID.Text = teaid;
                LabelTeaName.Text = teaname;
                LabelPhone.Text = phone;
                
            }
        }
       
        
        
        private string getTeaName(string teaid)
        {
            string result = "";
            try
            {
后面还有 432 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。