Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!int.TryParse(this.Page.Request.QueryString["helpId"], out this.helpId))
     {
         base.GotoResourceNotFound();
     }
     else
     {
         this.btnEditHelp.Click += new EventHandler(this.btnEditHelp_Click);
         if (!this.Page.IsPostBack)
         {
             this.dropHelpCategory.DataBind();
             HelpInfo help = ArticleHelper.GetHelp(this.helpId);
             if (help == null)
             {
                 base.GotoResourceNotFound();
             }
             else
             {
                 Globals.EntityCoding(help, false);
                 this.txtHelpTitle.Text              = help.Title;
                 this.txtMetaDescription.Text        = help.MetaDescription;
                 this.txtMetaKeywords.Text           = help.MetaKeywords;
                 this.txtShortDesc.Text              = help.Description;
                 this.fcContent.Text                 = help.Content;
                 this.lblEditHelp.Text               = help.HelpId.ToString(CultureInfo.InvariantCulture);
                 this.dropHelpCategory.SelectedValue = new int?(help.CategoryId);
                 this.radioShowFooter.SelectedValue  = help.IsShowFooter;
             }
         }
     }
 }