protected void Add() { MenuLinksBSO menuLinksBSO = new MenuLinksBSO(); MenuLinks menuLinks = ReceiveHtml(); try { int id = menuLinksBSO.AddMenuLinks(menuLinks); clientview.Text = "<div class='alert alert-sm alert-danger bg-gradient'>Thêm mới thành công !</div>"; initControl(id); } catch (Exception ex) { clientview.Text = ex.Message.ToString(); } }
protected void btn_add_Click_more(object sender, EventArgs e) { MenuLinksBSO menuLinksBSO = new MenuLinksBSO(); MenuLinks menuLinks = ReceiveHtml(); try { int id = menuLinksBSO.AddMenuLinks(menuLinks); clientview.Text = "<div class='alert alert-sm alert-danger bg-gradient'>Thêm mới thành công !</div>"; BindDropDownList(); AspNetCache.Reset(); } catch (Exception ex) { clientview.Text = ex.Message.ToString(); } }