XDF/Student/CourseInfo.aspx.cs

(开头部分) 22KB

这里只显示每个文件的开头 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.Student
{
    public partial class CourseInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (IsPostBack == false)
            {

                if (Session["UserRole"] == null)
                    Response.Redirect("~/Login.aspx");


                
                string stuid=Session["UserID"].ToString();
                string courseid = Session["CourseID"].ToString();
                string teaid = getTeaID(courseid);
                string teaname = getTeaName(teaid);
                string coursename = getCourseName(courseid);
                string coursetime = getCourseTime(courseid);
                string coursehour = getCourseHour(courseid);
                string courseintroduce = getCourseIntroduce(courseid);
                string price = getPrice(courseid);
                string teachgrade = getTeachGrade(courseid);
                string teachsubject = getTeachSubject(courseid);
                string roomid = getRoomID(courseid);
                string auditstate = getAuditState(courseid);
                string state = getState(courseid);
                string grade = getGrade(stuid);
                string num = getNum(courseid);
                string capacity = getCapacity(roomid);
                string roomtype = getRoomType(roomid);
                string basename = getBaseName(courseid.Substring (0,4));
                LabelTeaID.Text = teaid;
                LabelTeaName.Text = teaname;
                LabelCourseID.Text = courseid;
                LabelCourseName.Text = coursename;
                LabelCourseTime.Text = coursetime;
                LabelCourseHour.Text = coursehour;
                LabelPrice.Text = price;
                LabelGrade.Text = teachgrade;
                LabelSubject.Text = teachsubject;
                LabelRoomID.Text = roomid;
                LabelCourseIntroduce.Text = courseintroduce;
                LabelBaseName.Text = basename;
                LabelCapacity.Text = capacity;
                LabelRoomType.Text = roomtype;
                LabelNum.Text = num;
                int intnum = int.Parse(num);
后面还有 679 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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