Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
How to display page while long-running process executing?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Steven Cheng[MSFT]" data-source="post: 2763175"><p>Hello lmttag,</p><p></p><p>Thanks for your reply.</p><p></p><p>From the page code you provided, you're currently using the asynchronous </p><p>page execution model. I think for your scenario, you do not need to use </p><p>this asynchronous executing model. Actually, you can consider using a </p><p>separate thread(manually created) to execute those code that access the </p><p>backend report server and generate the report output. Thus, your main page </p><p>can simply use synchronous page execution model(do not use async page), and </p><p>when it postback to start generating the report, it will create a new </p><p>thread to do the report generation and the page will return to client </p><p>immediately after start the new thread and display a label(show "report is </p><p>being generated......"), and the client page will use AJAX script to </p><p>constantly call a server-side webservice to check whether the report result </p><p>has been generated(by checking a session variable). If report has been </p><p>generated, it submit the page and the page render out the report content </p><p>(generated by the separate thread in the former stage). How do you think of </p><p>this?</p><p></p><p>If you still have any question or any further concern here, please feel </p><p>free to let me know.</p><p></p><p>Sincerely,</p><p></p><p>Steven Cheng</p><p></p><p>Microsoft MSDN Online Support Lead</p><p></p><p></p><p>This posting is provided "AS IS" with no warranties, and confers no rights.</p></blockquote><p></p>
[QUOTE="Steven Cheng[MSFT], post: 2763175"] Hello lmttag, Thanks for your reply. From the page code you provided, you're currently using the asynchronous page execution model. I think for your scenario, you do not need to use this asynchronous executing model. Actually, you can consider using a separate thread(manually created) to execute those code that access the backend report server and generate the report output. Thus, your main page can simply use synchronous page execution model(do not use async page), and when it postback to start generating the report, it will create a new thread to do the report generation and the page will return to client immediately after start the new thread and display a label(show "report is being generated......"), and the client page will use AJAX script to constantly call a server-side webservice to check whether the report result has been generated(by checking a session variable). If report has been generated, it submit the page and the page render out the report content (generated by the separate thread in the former stage). How do you think of this? If you still have any question or any further concern here, please feel free to let me know. Sincerely, Steven Cheng Microsoft MSDN Online Support Lead This posting is provided "AS IS" with no warranties, and confers no rights. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
How to display page while long-running process executing?
Top