protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL(); int ipdObservationReportId = Convert.ToInt32(objCommon_EncryptDecryptBL.Decrypt(Request.QueryString["ipdObservationReportId"].ToString())); string ipdObservationId = objCommon_EncryptDecryptBL.Decrypt(Request.QueryString["ipdObservationId"].ToString()); Doctor_GetIPDReportMedicineBL objDoctor_GetIPDReportMedicineBL = new Doctor_GetIPDReportMedicineBL(); ds = objDoctor_GetIPDReportMedicineBL.Doctor_GetIPDReportMedicine(ipdObservationReportId, ipdObservationId); if(ds.Tables[0].Rows.Count != 0) { GridView1.DataSource = ds; GridView1.DataBind(); } else Label1.Visible = true; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Common_EncryptDecryptBL objCommon_EncryptDecryptBL = new Common_EncryptDecryptBL(); int ipdObservationReportId = Convert.ToInt32(objCommon_EncryptDecryptBL.Decrypt(Request.QueryString["ipdObservationReportId"].ToString())); string ipdObservationId = objCommon_EncryptDecryptBL.Decrypt(Request.QueryString["ipdObservationId"].ToString()); Doctor_GetIPDReportMedicineBL objDoctor_GetIPDReportMedicineBL = new Doctor_GetIPDReportMedicineBL(); ds = objDoctor_GetIPDReportMedicineBL.Doctor_GetIPDReportMedicine(ipdObservationReportId, ipdObservationId); if (ds.Tables[0].Rows.Count != 0) { GridView1.DataSource = ds; GridView1.DataBind(); } else { Label1.Visible = true; } } }