student/majorinfo.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public partial class student_majorinfo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(base.Request.QueryString["num"]!=null)
{
string id = base.Request.QueryString["num"];
Inits(id);
}
else
{
base.Response.Redirect("SuLogin_in.aspx");
}
}
#region 51aspx下载
#endregion
protected void Inits(string id)
{
string costr = System.Configuration.ConfigurationManager.AppSettings["GradeSys"];
DataSet ai = new DataSet();
string sql = "select major_name as name, major_description as des from major_description where major_num='" + id + "';";
new SqlDataAdapter(sql, costr).Fill(ai, "Tbai");
this.subject_name_lable.Text = ai.Tables[0].Rows[0]["name"].ToString();
this.description.Text = ai.Tables[0].Rows[0]["des"].ToString();
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
