Refresh button is not working in my report.I use report viewer to display report (in asp.net mvc).When i hit the refresh button it didnot get latest data.What is problem in my code.
Telerik.Reporting.ObjectDataSource objectDataSource = new Telerik.Reporting.ObjectDataSource();
objectDataSource = getData();
Reports.MyReport report = new Reports.MyReoprt();
report.DataSource = objectDataSource;
ReportViewer1.Report = report;
ReportViewer1.RefreshReport();
Telerik.Reporting.ObjectDataSource objectDataSource = new Telerik.Reporting.ObjectDataSource();
objectDataSource = getData();
Reports.MyReport report = new Reports.MyReoprt();
report.DataSource = objectDataSource;
ReportViewer1.Report = report;
ReportViewer1.RefreshReport();