protected void btn_add_Click(object sender, EventArgs e) { try { NewsGroup newsgroup = ReceiveHtml(); NewsGroupBSO newsgroupBSO = new NewsGroupBSO(); newsgroupBSO.CreateNewsGroup(newsgroup); clientview.Text = String.Format(Resources.StringAdmin.AddNewsSuccessful); Response.Redirect("~/Admin/Group/listnewsgroup/" + hddGroup.Value + "/Default.aspx"); } catch (Exception ex) { clientview.Text = ex.Message.ToString(); } }
protected void btn_add_Click(object sender, EventArgs e) { try { NewsGroup newsgroup = ReceiveHtml(); NewsGroupBSO newsgroupBSO = new NewsGroupBSO(); newsgroupBSO.CreateNewsGroup(newsgroup); clientview.Text = String.Format(Resources.StringAdmin.AddNewsSuccessful); //ViewCateNews(Convert.ToInt32(hddGroup.Value)); } catch (Exception ex) { clientview.Text = ex.Message.ToString(); } }