title: How to provide selection criteria to Crystal Report
body: <p>I'm currently working on a Crystal Report and my problem is this:</p>
  
  <p>I want to show the Crystal Report on another page, I mean when admin select any <code>Employee</code> from <code>DropDownList</code> and click on 'view report' then the report can be shown on another page. How can i do this?</p>
  
  <p><em><strong>EDIT:</em></strong></p>
  
  <p>In my <code>AdminReport.aspx.cs</code> page I have loaded employee names and select one <code>Employee</code> from <code>DropDownList</code>, after clicking on the 'view' button which can redirect into new <code>Report.aspx</code> page. I have put my report binding source into this page[(<code>Report.aspx.cs</code>).</p>
  
  <p>Here is my code:</p>
  
  <pre><code>ReportDocument rpt = new ReportDocument();
  rpt.Load(Server.MapPath("CryRepTest.rpt"));
  rpt.SetDatabaseLogon("sa", "password_1");
  var empid = drpdwnEmployee.SelectedItem.Value;
  rpt.RecordSelectionFormula = "{AdminReportView.EmployeeID}=" + empid;
  CrystalReportViewer1.ReportSource = rpt;
  CrystalReportViewer1.DataBind();
  </code></pre>
  
  <p>Can anyone knows??? plz help me...</p>