Exemplo n.º 1
0
 protected void btn_disable_Click(object sender, EventArgs e)
 {
     if (NewsGroupID() != "")
     {
         NewsGroupBSO newsGroupBSO = new NewsGroupBSO();
         newsGroupBSO.UpdateNewsGroup(NewsGroupID(), "0");
     }
     ViewNewsGroup(Convert.ToInt32(hddGroup.Value));
 }
 protected void btn_edit_Click(object sender, EventArgs e)
 {
     try
     {
         NewsGroup newsgroup = ReceiveHtml();
         NewsGroupBSO newsgroupBSO = new NewsGroupBSO();
         newsgroupBSO.UpdateNewsGroup(newsgroup);
         clientview.Text = String.Format(Resources.StringAdmin.UpdateSuccessful, "tin", newsgroup.Title);
         Response.Redirect("~/Admin/Group/listnewsgroup/" + hddGroup.Value + "/Default.aspx");
     }
     catch (Exception ex)
     {
         clientview.Text = ex.Message.ToString();
     }
 }
 protected void btn_enable_Click(object sender, ImageClickEventArgs e)
 {
     if (NewsGroupID() != "")
     {
         var newsGroupBSO = new NewsGroupBSO();
         newsGroupBSO.UpdateNewsGroup(NewsGroupID(), "1");
     }
     ViewNewsGroup(Convert.ToInt32(hddGroup.Value));
 }
Exemplo n.º 4
0
 protected void btn_edit_Click(object sender, EventArgs e)
 {
     try
     {
         NewsGroup newsgroup = ReceiveHtml();
         NewsGroupBSO newsgroupBSO = new NewsGroupBSO();
         newsgroupBSO.UpdateNewsGroup(newsgroup);
         clientview.Text = String.Format(Resources.StringAdmin.UpdateSuccessful, "tin", newsgroup.Title);
         //ViewCateNews(Convert.ToInt32(hddGroup.Value));
     }
     catch (Exception ex)
     {
         clientview.Text = ex.Message.ToString();
     }
 }