Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!int.TryParse(this.Page.Request.QueryString["afficheId"], out this.afficheId))
     {
         base.GotoResourceNotFound();
     }
     else
     {
         this.btnEditAffiche.Click += this.btnEditAffiche_Click;
         if (!this.Page.IsPostBack)
         {
             AfficheInfo affiche = NoticeHelper.GetAffiche(this.afficheId);
             if (affiche == null)
             {
                 base.GotoResourceNotFound();
             }
             else
             {
                 Globals.EntityCoding(affiche, false);
                 this.txtAfficheTitle.Text = affiche.Title;
                 this.fcContent.Text       = affiche.Content;
             }
         }
     }
 }