Share via

ReportViewer control parameters reset when Async

William Buchanan 61 Reputation points
2020-09-21T01:01:44.277+00:00

Hi all

Not sure if anyone has seen this problem but seem to be hitting a brick wall...

When we turn on the Async setting for the ReportViewer control what happens is after the report is run some of the parameters lose their selected option, which means that to re-run the report the user needs to go and re-select all the parameters again. Does anyone know how to prevent this?

E.g.

  • Load report
  • Select all parameter options
  • View Report -> All parameters now deselected
  • User needs to reselect all parameter options if they want to run report again

It is mainly the boolean options which are affected (radio buttons and check boxes) - the combo boxes remember their settings.

The reason we need to turn on Async is because without it the web browser becomes unresponsive when a long report is run so the user has the impression that the site has crashed. With Async on this doesn't happen but the problem with the resetting params is a worse problem as it affects everyone all the time.

We have the latest version of the ReportViewer control. It is running in an MVC application on an asxc page.

Any thoughts appreciated...

Thanks

SQL Server Reporting Services
SQL Server Reporting Services

A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Joyzhao-MSFT 15,651 Reputation points
    2020-09-21T07:42:53.603+00:00

    Hi,
    I am not sure if it could act as required in MVC project, since for now ReportViewer is only supported for WinForm/WebForm developing.
    Sorry that I am not very professional in C# MVC developing. I would suggest you could find help from C# developing forum or other developers forum which could offer more insight for this case.
    Regards,
    Joy


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.