📄 list.aspx.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 list : System.Web.UI.Page
{
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 PrintExcellenceValid()
{
try
{
DataTable reader = Student.Student.GetExcellInfoValid();
if (reader != null)
{
for (int i = 0; i < reader.Rows.Count; i++)
{
DataRow drow = reader.Rows[i];
Response.Write("<tr>");
Response.Write("<td width=\"20%\" align=\"right\" class=\"mode4\" style=\"height: 23px\"><span style=\"font-size: 10pt\">争先评优名称:</span></td>");
Response.Write("<td width=\"72%\" align=\"left\" class=\"mode5\" style=\"height: 23px\"><div align=\"center\"><a href=\"" + "../UpLoad/" + drow["FileName"].ToString() + "\"><span style=\"font-size: 10pt\">"
+ drow["ExcellenceName"].ToString() + "</span></a></div></td>");
Response.Write("<td width=\"8%\" align=\"left\" class=\"mode5\" style=\"height: 23px\"><div align=\"center\"><a href=\"befirstapply.aspx?excellenceinfoid=" + drow["ExcellenceInfoID"].ToString() + "\"><span style=\"font-size: 10pt\"> 申请</span></a></div></td>");
Response.Write("</tr>");
}
}
}
catch (Exception ex)
{
Response.Write("<script> alert(\'" + ex.Message + "\')</script>");
}
}
public void ShowRewordNameInfo()
{
try
{
DataTable reader = Student.Student.GetRewordInfo();
if (reader != null)
{
for (int i = 0; i < reader.Rows.Count; i++)
{
DataRow drow = reader.Rows[i];
Response.Write("<tr>");
Response.Write("<td width=\"20%\" align=\"right\" class=\"mode4\" style=\"height: 23px\"><span style=\"font-size: 10pt\">奖助学金名称:</span></td>");
Response.Write("<td width=\"72%\" align=\"left\" class=\"mode5\" style=\"height: 23px\"><div align=\"center\"><a href=\"" + "../UpLoad/" + drow["FileName"].ToString() + "\"><span style=\"font-size: 10pt\">"
+ drow["ScholarshipName"].ToString() + "</span></a></div></td>");
Response.Write("<td width=\"8%\" align=\"left\" class=\"mode5\" style=\"height: 23px\"><div align=\"center\"><a href=\"rewordapply.aspx?scholarshipinfoid=" + drow["ScholarshipInfoID"].ToString() + "\"><span style=\"font-size: 10pt\">申请</span></a>");
Response.Write("</tr>");
}
}
}
catch (Exception ex)
{
Response.Write("<script> alert(\'" + ex.Message + "\');</script>");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -