title: Crystal Report Viewer Not Displaying the data. ( ASP.NET )
body: <p>I am developing a website using ASP.NET. I use crystal report as a reporting tool. I use this code to load the report</p>
  
  <pre><code>          rpt.Load(Server.MapPath("~\\Reports\\A4\\GrnDetailReport-A4.rpt"));
  
            rpt.SetParameterValue("DateFrom", dtimeFrom);
            rpt.SetParameterValue("DateTo", dtimeTo);
            rpt.SetParameterValue("CompanyId",ddCompanyNames.SelectedValue);
            rpt.SetParameterValue("LocationId", ddLocations.SelectedValue);
  
            CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
  
  
          CrystalReportViewer1.ReportSource = rpt;
          CrystalReportViewer1.DataBind();
  </code></pre>
  
  <p>So above code working with some issues. Report is loading. But data is not displaying.
  <img src="https://i.stack.imgur.com/FAp6P.jpg" alt="enter image description here"></p>
  
  <p>When I press the refresh button on the page it is displaying. Whats gone wrong there?</p>
  
  <p>I called this function at bottom of above code.</p>
  
  <pre><code>CrystalReportViewer1.RefreshReport();
  </code></pre>
  
  <p>but still got the problem.</p>
  
  <p>Also when I press the refresh button It is asking for parameter window. How to bypas this window?  I am setting parameter values from the code.Do I need to again give these to this window?</p>