I have created an asp.net application in which i have a textbox and botton.T
he textbox value is passed as parameter to a report and the corresponding report is generated on button click.The problem is that once i add a report to any application the same report is displayed each time i.e. the report is not updating whenever there is a change in the database values.
Iam refreshing the datasource in the original report and change is reflected there in original report but in the dotnet application always the old report is maintained......
Can anybody help me out......
I had the same problem reportviewer1.reset nd I sovled it by added a line code before refreshing the report:
reportviewer1.reset
|||
I had the same problem and I sovled it by added a line of code before refreshing the report:
reportviewer1.reset
|||
Thanx Frankmeng for your suggestion but it is not working....
It is giving me build error.
Error 1 'Microsoft.Reporting.WebForms.ReportViewer' does not contain a definition for 'Reset'
Can u help me with this?
I would also like to know whether we can set the paging property of the report so that only desired number of records are displayed in a page and the user doesn't have to scroll up and down.
Thanx.
|||
|||Thanks a lot Arun its working...
Arun:
It is sovled by added a line of code in the Button click event.
reportviewer1.localreport.refresh()
No comments:
Post a Comment