protected void btnCreate_Click(object sender, EventArgs e) { // tạo dữ liệu tahngs try { SYS_Session session = (SYS_Session)Session["SYS_Session"]; db.DN_Create_ThucTe(int.Parse(session.User.MA_DVIQLY), int.Parse(cmbThang.Value + ""), int.Parse("" + cmbNam.Value)); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "", "alert('Tạo dữ liệu nhập thực tế điện năng theo tháng cấp công ty thành công');", true); btnCreate.Visible = false; btnLoc.Visible = true; _DataBind(); } catch (Exception ex) { } }