private void BindSIPSignUp() { dtFromDate = Convert.ToDateTime(rdpFromDate.SelectedDate); dtToDate = Convert.ToDateTime(rdpToDate.SelectedDate); DataSet dsSIP; dsSIP = advisorBranchBo.GetSIPSignUp(adviserVo.advisorId, dtFromDate, dtToDate, int.Parse(ddlTypes.SelectedValue), userType, AgentCode); DataTable dtSIP = dsSIP.Tables[0]; if (dtSIP == null) { gvSIP.DataSource = dtSIP; gvSIP.DataBind(); } else { gvSIP.DataSource = dtSIP; gvSIP.DataBind(); btnExportFilteredData.Visible = false; btnExportFolio.Visible = false; btnExportSIP.Visible = true; if (Cache["gvSIP" + adviserVo.advisorId] == null) { Cache.Insert("gvSIP" + adviserVo.advisorId, dtSIP); } else { Cache.Remove("gvSIP" + adviserVo.advisorId); Cache.Insert("gvSIP" + adviserVo.advisorId, dtSIP); } } }