⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changezj.aspx.cs

📁 一个研究生管理系统 具体的情况自己看了
💻 CS
字号:
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 manger_changezj : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Session["admin"].ToString() != "true")
            {
                //Response.Write("<script>parent.window.location.href='login.aspx';</script>");
                Response.Write("<script>parent.window.location.href='../login.aspx';</script>");
                Response.End();
            }
        }
        catch
        {
            Response.Write("<script>parent.window.location.href='../login.aspx';</script>");
            Response.End();
        }
        int id = -1;
        try
        {
            id = Convert.ToInt32(Request["id"].ToString());
        }
        catch
        {
            id = -1;
        }
        if (id > 0)
        {
            HiddenField1.Value = id.ToString();
        }
    }
    public void print()
    {
        //打印历史活动信息

        int id = Convert.ToInt32(HiddenField1.Value);
        DataTable reader = grd_MIS.manager.GetData_RestStudyList_ReStudyCourseID(id);//接口调用
        int i = 0;
        if (reader != null)
        {
            while (reader.Rows.Count > i)
            {

                DataRow read = reader.Rows[i];
                Response.Write("<tr><td align=\"center\" class=\"mode5\" style=\"width: 261px\">");
                Response.Write(read["StuID"].ToString());
               
                Response.Write("</td><td align=\"center\" class=\"mode5\" style=\"width: 249px\">");
                Response.Write(read["StuName"].ToString());
                Response.Write("</td><td align=\"center\" class=\"mode5\">");
                Response.Write("<a target=\"_self\" href=\"../comm/studentinfo.aspx?id=" + read["StuID"].ToString() +  "\">	<font color=\"#000000\" style=\"font-size: 9pt\">查看学生信息</font></a>" + "</font>&nbsp&nbsp");
                 
                    Response.Write("</td></tr>\n");
                i++;

            }




        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -