WEB/student/viewnotice.aspx.cs
(完整代码) 1KBusing System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;
using MODEL;
public partial class student_viewnotice : System.Web.UI.Page
{
public NoticesManage nm = new NoticesManage();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["studentId"] != null)
{
notices n = new notices();
n.NoticeId = Convert.ToInt32(Request.QueryString["noticeId"]);
DataTable m = nm.Select(n);
lbl1.Text = m.Rows[0]["noticeName"].ToString();
txt2.Text = m.Rows[0]["content"].ToString();
lbl2.Text = m.Rows[0]["issuer"].ToString();
lbl3.Text = m.Rows[0]["issueTime"].ToString();
}
else Response.Redirect("../login.aspx");
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
