title: how to refresh data in reportviewer?
body: <p>I have a reportviewer in a webform named <code>WebForm1</code> using 2 parameters named <code>fromDate</code> and <code>toDate</code> to filter data.  The webform shows data when it loads. Problem is that when I change the <code>fromDate</code>, <code>toDate</code> field and click button1 to submit, <strong>it goes back to default date</strong> and reload with the same data.  How do I refresh the reportviewer data with the new input date?  How do I use reportviewer in a webform (not winform) with parameters?  Thanks for any help.  </p>
  
  <p>Here is my <strong>WebForm1.aspx.cs:</strong></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  
  namespace WebApplication2
  {
      public partial class WebForm1 : System.Web.UI.Page
  
      { 
          protected void Page_Load(object sender, EventArgs e)
          {
              this.fromDate.Text = "8/6/2015";
              this.toDate.Text = DateTime.Now.ToShortDateString();
          }
      }
  }
  </code></pre>