private void bindGridView() { try { _daDSR = new DA_DSR(); _lstDSR = _daDSR.GetDSR(ConvertToDBDate(txtDSRDate.Text)); dvDSRData.DataSource = _lstDSR; dvDSRData.DataBind(); } catch (Exception ex) { ClientScript.RegisterStartupScript(GetType(), "DSR Report", "alert(" + Message.ErrorMessage + ");", true); EXCEPTION_UTILITY.WriteToLog(ex, GetLogFilePath(), _UserModel.LoginId, "DSR Report", "ETS", "bindGridView"); } }
private void loadDSR(string strDate) { try { _daDSR = new DA_DSR(); _lstDSR = _daDSR.GetDSR(strDate); dvDSRData.DataSource = _lstDSR; dvDSRData.DataBind(); } catch (Exception ex) { ClientScript.RegisterStartupScript(GetType(), "DSR Report", "alert(" + Message.ErrorMessage + ");", true); EXCEPTION_UTILITY.WriteToLog(ex, GetLogFilePath(), _UserModel.LoginId, "DSR Report", "ETS", "loadDSR"); } }