Click here to Skip to main content
16,004,761 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone.

I have a page that runs a report. During the report generation I set update statusses. These statusses fire an event which the masterpage receives. This masterpage holds a gridview component that shows the last 5 actions done in the system by a user.
Only after the call to the report I see the gridview being filled with the endstatus.
The gridview is in an UpdatePanel.

- How can I show all the status in the page while it is busy generating the report?

My second try was with using a Timer object (AJAX timer).
How to start and stop a Timer that is on the masterpage with javascript from the reportpage?

trying now with an UpdateProgress...still no succes. Who can help me out?
Posted
Updated 13-Aug-13 1:53am
v3
Comments
pradiprenushe 14-Aug-13 5:10am    
Hope this will be helpful
1.Use session variable for status.
2. Creat Page method which chechk session return status message in respone
3. Call this page method from javascript with 1 sec timer & in onsucces change the status with responce you get

1 solution

Steps:
1. Use Asyn page.
2. Store the status value in Session.
3. Create WebMEthod to get status value from Session.
4. Enable Session for the WebMethod.
5. Write js code to make ajax call to the WebMEthod to retrieve the status value.
5. Show the status to end-user.
 
Share this answer
 
Comments
Herman<T>.Instance 14-Aug-13 9:48am    
Hi Deviprasad,

what do you exactly mean by step 4?
Deviprasad Das 14-Aug-13 10:07am    
To enable session in a webmethod, you have to write the following.

[WebMethod(EnableSession = true)]

After that you can access the session by using HttpContext.Current.Session
Herman<T>.Instance 14-Aug-13 10:29am    
Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900