protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { NoticeFacade facade = new NoticeFacade(); string noticeId = Request["n"]; if (!string.IsNullOrEmpty(noticeId)) { NoticeInfo noticeInfo = facade.GetNoticeMessage(noticeId); if (noticeInfo != null) { lblContent.Text = noticeInfo.Message; } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { NoticeFacade facade = new NoticeFacade(); if (IsAdd) { lblTitle.Text = "添加新通知"; } else { string noticeId = Request["id"]; NoticeInfo noticeInfo = facade.GetNoticeMessage(noticeId); if (noticeInfo != null) { BindNoticeInfo(noticeInfo); lblTitle.Text = "编辑通知 -> " + noticeInfo.Name; } } } }