예제 #1
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     if (!long.TryParse(this.Page.Request.QueryString["MessageId"], out this.messageId))
     {
         base.GotoResourceNotFound();
         return;
     }
     this.btnReplyReplyReceivedMessages.Click += new System.EventHandler(this.btnReplyReplyReceivedMessages_Click);
     if (!this.Page.IsPostBack)
     {
         NoticeHelper.PostManagerMessageIsRead(this.messageId);
         MessageBoxInfo managerMessage = NoticeHelper.GetManagerMessage(this.messageId);
         this.litTitle.Text        = managerMessage.Title;
         this.txtContent.Value     = managerMessage.Content;
         this.ViewState["Sernder"] = managerMessage.Sernder;
     }
 }