protected void BindGrid() { try { objBE.Action = "R"; objBE.Dept = Department; dt = ObjDL.EmployeeIUDR(objBE, con); if (dt.Rows.Count > 0) { Gvemp.DataSource = dt; Gvemp.DataBind(); } else { Gvemp.DataSource = null; Gvemp.DataBind(); cf.ShowAlertMessage("No Data"); } } catch (Exception ex) { ExceptionLogging.SendExcepToDB(ex, Session["UsrName"].ToString(), Request.ServerVariables["REMOTE_ADDR"].ToString()); cf.ShowAlertMessage(ex.ToString()); } }
protected void BindGrid() { try { OBJMSTBE.Dept = dept; OBJMSTBE.labid = Session["Labcode"].ToString(); OBJMSTBE.Action = "R2"; dt = OBJMSTDL.EmployeeIUDR_Agri(OBJMSTBE, con); if (dt.Rows.Count > 0) { Gvemp.DataSource = dt; Gvemp.DataBind(); } else { Gvemp.DataSource = null; Gvemp.DataBind(); cf.ShowAlertMessage("No Data"); } } catch (Exception ex) { ExceptionLogging.SendExcepToDB(ex, Session["UsrName"].ToString(), Request.ServerVariables["REMOTE_ADDR"].ToString()); cf.ShowAlertMessage(ex.ToString()); } }