Пример #1
0
 protected void btn_edit_Click(object sender, EventArgs e)
 {
     try
     {
         Announce announce = ReceiveHtml();
         AnnounceBSO announceBSO = new AnnounceBSO();
         announceBSO.UpdateAnnounce(announce);
         clientview.Text = String.Format(Resources.StringAdmin.UpdateSuccessful, "tin", announce.Title);
         ViewCateAnnounce();
     }
     catch (Exception ex)
     {
         clientview.Text = ex.Message.ToString();
     }
 }
Пример #2
0
 protected void btn_disable_Click(object sender, EventArgs e)
 {
     if (AnnounceID() != "")
     {
         AnnounceBSO announceBSO = new AnnounceBSO();
         announceBSO.UpdateAnnounce(AnnounceID(), "0");
     }
     ViewAnnounce();
 }