Solved

Report Viewer Control while report is being generated

Posted on 2009-04-06
1
530 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
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now