Ejemplo n.º 1
0
 protected override void AttachChildControls()
 {
     this.litAddresser                   = (Literal)this.FindControl("litAddresser");
     this.litTitle                       = (Literal)this.FindControl("litTitle");
     this.litDate                        = (FormatedTimeLabel)this.FindControl("litDate");
     this.txtReplyTitle                  = (TextBox)this.FindControl("txtReplyTitle");
     this.txtReplyContent                = (TextBox)this.FindControl("txtReplyContent");
     this.txtReplyRecord                 = (HtmlTextArea)this.FindControl("txtReplyRecord");
     this.btnReplyReceivedMessage        = (Button)this.FindControl("btnReplyReceivedMessage");
     this.btnReplyReceivedMessage.Click += this.btnReplyReceivedMessage_Click;
     if (!string.IsNullOrEmpty(this.Page.Request.QueryString["MessageId"]))
     {
         this.messageId = long.Parse(this.Page.Request.QueryString["MessageId"]);
     }
     if (!this.Page.IsPostBack)
     {
         CommentBrowser.PostMemberMessageIsRead(this.messageId);
         MessageBoxInfo memberMessage = CommentBrowser.GetMemberMessage(this.messageId);
         if (memberMessage != null)
         {
             this.litAddresser.Text    = "管理员";
             this.litTitle.Text        = memberMessage.Title;
             this.txtReplyRecord.Value = memberMessage.Content;
             this.litDate.Time         = memberMessage.Date;
         }
     }
 }
Ejemplo n.º 2
0
        protected override void AttachChildControls()
        {
            this.MessageContent = (System.Web.UI.WebControls.Literal) this.FindControl("MessageContent");

            if (!long.TryParse(this.Page.Request.QueryString["MessageId"], out this.MessageId))
            {
                base.GotoResourceNotFound("");
            }
            else
            {
                this.MessageContent.Text = CommentBrowser.GetMemberMessage(MessageId).Content;

                PageTitle.AddSiteNameTitle("消息详情");

                WAPHeadName.AddHeadName("消息详情");
            }
        }