I encountered a problem when setting the parameters of a Microsoft Report object (i.e., an RDLC file created in VS.NET 2010) and rendering it via a ReportViewer control in an ASP.NET 4.0 web application: When loading the report, it infinitely displayed the 'Loading' box, never actually rendering the actual report. This occurs because the parameters set are posted back to the web server, to the Reserved.ReportViewerWebControl.axd web resource, and if this is done on every page load event, the parameters are set infinitely (on each page load), with the web form never having a chance to complete. Therefore, the solution is to ensure the parameters are not set in a post-back event. Here's an example:
Mike's a long-time, C# developer, with experience in database development, software architecture & design, .Net, ASP.NET, HTML, JavaScript, VB, CSS, Flash, SQL Server, Oracle, and more.
Wednesday, September 01, 2010
Infinite "Loading" Loop Message When Setting Parameters of an MS Report in ASP.NET 4.0 / 2010
Labels:
2010,
asp.net,
parameters,
ReportViewer,
SetParameters
Subscribe to:
Post Comments (Atom)
2 comments:
Thanks for your suggestion.This is one of the sharing and user friendly post.good work.
Thanks for your suggestion.This is one of the sharing and user friendly post.good work.
Post a Comment