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

📄 rewordinfo.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;
using System.Data.SqlClient;

public partial class student_rewordinfo : System.Web.UI.Page
{
    public int index = 0;
    public DataTable dt = null;
    public DataRow drow = null; 
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Session["Student"].ToString()!= "true")
            {
                Response.Write("<script>parent.window.href=\"../login.aspx\"</script>");
                Response.End();
            }
        }
        catch
        {
            Response.Write("<script>parent.window.href=\"../login.aspx\"</script>");
            Response.End();
        }
    }
    public void ShowRewordInfo()
    {

        try
        {

            dt = Student.Student.GetRewordInfo();
            if (dt != null)
            {
                for (index = 0; index < dt.Rows.Count; index++)
                {
                    
                    drow = dt.Rows[index];
                    Response.Write("<tr>");
                    Response.Write("<td align=\"right\" class=\"mode4\" style=\"width: 15%; height: 23px; text-align: center\">");
                    ShowScholarshipInfoID();
                    Response.Write("</td>");
                    Response.Write("<td align=\"left\" class=\"mode4\" style=\"width: 59%; height: 23px\">");
                    ShowScholarshipName();
                    Response.Write("</td>");
                    Response.Write("<td align=\"left\" class=\"mode4\" style=\"width: 14%; height: 23px; text-align: center\">");
                    ShowScholarshipMoney();
                    Response.Write("<td align=\"left\" class=\"mode4\" style=\"height: 23px; text-align: center\">");
                    Response.Write("<a href=\"rewordapply.aspx?scholarshipinfoid=" + drow["ScholarshipInfoID"].ToString() + "\"><img src=\"images/1.gif\" style=\"width: 48px; height: 22px\" /></a>");
                    Response.Write("</td>");
                    Response.Write("</tr>");
                }
            }
        }
        catch (Exception ex)
        {
            Response.Write("<script> alert(\'" + ex.Message + "\');</script>");
        }

    }
    public void ShowScholarshipInfoID()
    {
        try
        {
            Response.Write(drow["ScholarshipInfoID"].ToString());
        }
        catch (Exception ex)
        {
            Response.Write("<script> alert(\'" + ex.Message + "\');</script>");
        }

    }
    public void ShowScholarshipName()
    {
        try
        {
           // Response.Write("<td width=\"72%\" align=left class=mode5 style=\"height: 23px\"><div align=\"center\"><a href=\"<%Response.Write(Request.ApplicationPath);Response.Write(\"/UpLoad/\"+drow[\"FileName\"].ToString());%>\">"
              //  + drow["ExcellenceName"].ToString() + "</a></div></td>");

            Response.Write("<a href=\""+ "../UpLoad/" + drow["FileName"].ToString() + "\">"
                        + drow["ScholarshipName"].ToString()+"(点击下载)" + "</a>");
        }
        catch (Exception ex)
        {
            Response.Write("<script> alert(\'" + ex.Message + "\');</script>");
        }

    }
    public void ShowScholarshipMoney()
    {
        try
        {
            Response.Write(drow["ScholarshipMoney"].ToString());
        }
        catch (Exception ex)
        {
            Response.Write("<script> alert(\'" + ex.Message + "\');</script>");
        }
    }
    public void ShowRemark()
    {
        try
        {
            Response.Write(drow["Remark"].ToString());
        }
        catch (Exception ex)
        {
            Response.Write("<script> alert(\'" + ex.Message + "\');</script>");
        }

    }


}

⌨️ 快捷键说明

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