Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8884599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:05:57+00:00 2026-06-14T21:05:57+00:00

I’m trying to create a report host in vs2010 using asp.net. This is the

  • 0

I’m trying to create a report host in vs2010 using asp.net. This is the first time I’ve tried doing web development so I may be making a very obvious mistake. The end goal is a host that not only shows a report to the user, but also tracks how long they are looking at the report. However, I can’t get past this annoying issue that every time my timer ticks the report is redrawn.

I have a UsageAuditor control, it’s just an update panel with a timer and a label in it:

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
    <asp:Timer runat="server" ID="Timer1" Interval="3000" OnTick="Timer1_Tick"/>
    <asp:Label ID="lblTime" runat="server" Text="Not updated yet"></asp:Label>
</ContentTemplate>

Then my report shell uses that control:

<body>
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"/>
    <uc1:UsageAuditor ID="ua1" runat="server" />
    <rsweb:reportviewer ID="reportViewer" runat="server"  Font-Names="Verdana" 
        Font-Size="8pt" InteractiveDeviceInfos="(Collection)" ProcessingMode="Remote" 
        WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" 
        Height="800px" Width="1000px" AsyncRendering="True">            
    </rsweb:reportviewer>
</form>
</body>

And the timer tick simply updates the label:

protected void Timer1_Tick(object sender, EventArgs e)
{
    lblTime.Text = String.Format("Updated at {0}", DateTime.Now.ToString());
}

So I thought by definining my ReportViewer outside of the UpdatePanel the UpdatePanel would redraw iteself, but the rest of the page would not get updated. However, every time the timer ticks it redraws the report. It’s very annoying because if you have the calendar control open on the report it closes it. Currently for testing purposes the timer ticks every three seconds which is not realistic, but I still don’t want the report control getting redrawn when the user is trying to use it regardless of the interval. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:05:58+00:00Added an answer on June 14, 2026 at 9:05 pm

    Well I found a post saying ReportViewer and UpdatePanel do not mix:

    Due to the way the report viewer uses script, it is currently not compatible with an UpdatePanel. We are aware of this problem and looking into the necessary changes to get the ReportViewer working in an UpdatePanel. But at present, there is no work around. While it may appear you can get simple reports working in this scenario, some of the more subtle report viewer behavior will still be broken, such as its code that keeps the report session alive when the browser window is left open.

    After reading puddleglums suggestion I put some thought into why I felt I needed to use a timer to update my usage information. It really was unneccessary to upate on an interval if I could just capture when the user left the page.

    Following this example I added some java script to call a server side function on close:

    <script type="text/javascript">
        //<![CDATA[
        function HandleClose() {
            var QAid = document.getElementById('QAReportRequest');
            PageMethods.SetReportViewEndTime(QAid.value);
        }
        //]]> 
    </script>
    

    Added the HandleClose call on onunload and the hidden type to my body:

    <body onunload="HandleClose()">
      <form id="form1" runat="server">
      <input id="QAReportRequest" type="hidden" runat="server"/>
      <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"/>
      <rsweb:reportviewer ID="reportViewer" runat="server" Font-Names="Verdana" 
        Font-Size="8pt" InteractiveDeviceInfos="(Collection)" ProcessingMode="Remote" 
        WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" 
        Height="800px" Width="1000px">
      </rsweb:reportviewer>          
      </form>
    </body>
    

    Then created a server side function:

        [WebMethod]
        public static void SetReportViewEndTime(string ID)
        {
            QAReportingManager manager = new QAReportingManager();
            QAReportUsageResponse element = manager.GetQAReportUsage(long.Parse(ID));
            QAReportUsageRequest request = new QAReportUsageRequest
            {
                ID = element.ID,
                userID = element.userID,
                userName = element.userName,
                reportName = element.reportName,
                startTime = element.startTime,
                endTime = DateTime.Now,
                department = "Unknown"
            };
            manager.SaveQAReportUsage(request);
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to create an if statement in PHP that prevents a single post
I'm making a simple page using Google Maps API 3. My first. One marker
I am trying to understand how to use SyndicationItem to display feed which is
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.