protected void BindGrid() { objBE.Action = "CdofviewCT"; dt = Objrdl.JAActionEdit(objBE, con); if (dt.Rows.Count > 0) { GvPrintForm.DataSource = dt; GvPrintForm.DataBind(); } else { GvPrintForm.DataSource = null; GvPrintForm.DataBind(); cf.ShowAlertMessage("No data"); } }
protected void BindGrid() { objBE.Action = "UOVIEWPRNT"; objBE.UOId = Uocode; objBE.flag = "0"; dt = ObjDL.JAActionEdit(objBE, con); if (dt.Rows.Count > 0) { GvPrintForm.DataSource = dt; GvPrintForm.DataBind(); } else { GvPrintForm.DataSource = null; GvPrintForm.DataBind(); cf.ShowAlertMessage("No data"); } }
public void BindGrid() { try { objR.Action = "PM"; objR.DI_AO_Code = dicode; dt = Objrdl.SampleRegistrationDI(objR, con); if (dt.Rows.Count > 0) { GvPrintForm.DataSource = dt; GvPrintForm.DataBind(); } else { GvPrintForm.DataSource = null; GvPrintForm.DataBind(); } } catch (Exception ex) { ExceptionLogging.SendExcepToDB(ex, Session["UsrName"].ToString(), Request.ServerVariables["REMOTE_ADDR"].ToString()); Response.Redirect("~/Error.aspx"); } }