protected void BindGrid() { try { objBE.Action = "S"; objBE.dept = Department; dt = Objrdl.CourierIUDR(objBE, con); if (dt.Rows.Count > 0) { GVCourierAck.DataSource = dt; GVCourierAck.DataBind(); } else { GVCourierAck.DataSource = null; GVCourierAck.DataBind(); lbltext.Visible = true; btnAck.Visible = false; } } catch (Exception ex) { ExceptionLogging.SendExcepToDB(ex, Session["UsrName"].ToString(), Request.ServerVariables["REMOTE_ADDR"].ToString()); cf.ShowAlertMessage(ex.ToString()); } }
protected void BindGrid() { try { dt = new DataTable(); objBE.Action = "ACKSMPL"; objBE.ack = "0"; objBE.labID = Session["Labcode"].ToString(); dt = ObjDL.UOAction(objBE, con); if (dt.Rows.Count > 0) { GVCourierAck.DataSource = dt; GVCourierAck.DataBind(); } else { GVCourierAck.DataSource = null; GVCourierAck.DataBind(); lbltext.Visible = true; btnAck.Visible = false; } } catch (Exception ex) { ExceptionLogging.SendExcepToDB(ex, Session["UsrName"].ToString(), Request.ServerVariables["REMOTE_ADDR"].ToString()); ObjCommon.ShowAlertMessage(ex.ToString()); } }