ReportViewer or ObjectDataSource Caching??

Posted on 2006-05-17
Last Modified: 2008-02-01
I've created a multiview with two views.  

The first view has two date parameter fields and a submit button.  When the dates are populated and the button pressed, the ObjectDataSource gets the data from a stored procedure and populates the reportviewer in the second view.

After this first execution, the report keeps displaying the same data whatever dates I put in as parameters.  The code to get the data from the object data source is not being executed after the first time.  And I ran Profiler..the stored procedure isn't being executed.

I have EnableCaching = False on the ObjectDataSource.

I would like the report to be populated with fresh data upon each execution.


Question by:JeffDrummond

    Author Comment

    The answer is:  ReportViewer.LocalReport.Refresh().
    LVL 5

    Accepted Solution

    Closed, 500 points refunded.
    Site Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    760 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

    11 Experts available now in Live!

    Get 1:1 Help Now