Exemple #1
0
        protected override void AttachChildControls()
        {
            if (!int.TryParse(this.Page.Request.QueryString["messageId"], out this.messageId))
            {
                base.GotoResourceNotFound("");
            }
            this.imgUrl     = (HiImage)this.FindControl("imgUrl");
            this.litContent = (System.Web.UI.WebControls.Literal) this.FindControl("litContent");
            MessageInfo message = VshopBrowser.GetMessage(this.messageId);

            if (message == null)
            {
                base.GotoResourceNotFound("");
            }
            this.imgUrl.ImageUrl = message.ImageUrl;
            this.litContent.Text = message.Content;
            PageTitle.AddSiteNameTitle("内容详情");
        }