?
Solved

Report Viewer Control while report is being generated

Posted on 2009-04-06
1
Medium Priority
?
540 Views
Last Modified: 2012-05-06
Hello,
I am developing some reports and am using report viewer control to display the reports. I am getting the data for the report through a stored procedure which take around a min to return the data set.
I dynamically bind the data set returned from the stored procedure at runtime based on the selection of the report paramters. Once the report is displayed and the users wants to get a new report by changing their selection, the old report is still on the screen and unless the users notice the green bar at the bottom of the screen , there is no way to tell that their result is being processed.

I need some sort of notification for the user so that they realize that request has been submitted and the new report is being processed. I tried using Report.Refresh but that does not. Can anyone help please ?
0
Comment
Question by:rranjan7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
rranjan7 earned 0 total points
ID: 24088448
Never mind, I figured it out...Here is what I did:

<script runat="server">
      private void Page_Load(object sender, System.EventArgs e)
      {
            btnSubmit.Attributes.Add("onclick", "document.getElementById('msgWait').style.display='block'");
      }
</script>

<form runat="server">
   <asp:Button id="btnSubmit" runat="server" Text="Submit" onclick="btnSubmit_Click" /></p>
</form>

<div id="msgWait" style="display:none; color: red"><p>Please wait.  This may take up to a minute...</p></div>

Now as soon as the user clicks on the button , the message gets displayed to the user.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question