ReportVierer wraped in ASPNetControl, Init fires 2 times

0
0

HI,

I created ReportViewer wrapped in ASPNet control,

bit when i am trying to display local report, onInit and OnLoad is fired two times (for larger reports based on data queries this extends time to show report, and adds load to DB server)

this is wrapper in sample app

https://gitlab.com/dn-misc/WisejMultiProjectApp/-/blob/master/SubProjectA/Helpers/AspNetReportViewer.cs

In sample app slick on blue item in navigation bar and then in menu select window / Window 2

Thanx,

D

  • You must to post comments
0
0

Try also the attached sample.

Remember that any change on the client, any rendering, request, event, in ASP.NET is a round trip full request causing the control to be recreated from scratch every time. This is not because of Wisej, it’s the way ASP.NET works. All HTML based systems work like that. Wisej is a Single Page Application (SPA) system where the page is one and all events and changes are processed limited to the element changed and only the changed properties affect the page.

 

  • You must to post comments
0
0

Check this.reportViewer.IsPostBack. The entire page cycle fires on every request in ASP.NET.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.