Ejemplo n.º 1
0
        protected void btn_edit_Click(object sender, EventArgs e)
        {
            try
            {
                CateNews catenews = ReceiveHtml();

                CateNewsBSO catenewsBSO = new CateNewsBSO();
                //if (CheckedList().Equals(""))
                //{
                //    clientview.Text = "Loi : Xin hay lua chon it nhat 1 quyen";
                //}
                //else
                //{
                catenewsBSO.UpdateCateNews(catenews);

                clientview.Text = String.Format(Resources.StringAdmin.UpdateSuccessful, "danh mục", catenews.CateNewsName);

                //ViewCateGroup(Convert.ToInt32(HddGroupCate.Value));
                //}
            }
            catch (Exception ex)
            {
                clientview.Text = ex.Message.ToString();
            }
        }
Ejemplo n.º 2
0
        protected void btn_edit_Click(object sender, EventArgs e)
        {
            try
            {
                CateNews catenews = ReceiveHtml();

                CateNewsBSO catenewsBSO = new CateNewsBSO();

                catenewsBSO.UpdateCateNews(catenews);

                clientview.Text = String.Format(Resources.StringAdmin.UpdateSuccessful, "danh mục", catenews.CateNewsName);

                ViewCateGroup(Convert.ToInt32(HddGroupCate.Value));

            }
            catch (Exception ex)
            {
                clientview.Text = ex.Message.ToString();
            }
        }