title: passing parameters in crystal report
body: <p>I am creating crytal report from a stored procedure ,this works fine when i pass one parameter but it shows an error </p>
  
  <blockquote>
    <p>"incorrect parameter "</p>
  </blockquote>
  
  <p>when i pass two parameters 
  my code is</p>
  
  <pre><code> {
      ReportDocument reportDocument = new ReportDocument();
      ParameterField paramField = new ParameterField();
      ParameterFields paramFields = new ParameterFields();
      ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();
  
      paramField.Name = "@Dept";
      paramDiscreteValue.Value = TextBox1.Text.ToString();
      paramField.CurrentValues.Add(paramDiscreteValue);
      paramFields.Add(paramField);
  
      paramField.Name = "@Name";
      paramDiscreteValue.Value = TextBox2.Text.ToString();
      paramField.CurrentValues.Add(paramDiscreteValue);
      paramFields.Add(paramField);
  
      CrystalReportViewer1.ParameterFieldInfo = paramFields;
      reportDocument.Load(Server.MapPath("CrystalReport.rpt"));
      CrystalReportViewer1.ReportSource = reportDocument;
      reportDocument.SetDatabaseLogon("sa", "sa", "OPWFMS-7KYGZ7SB", "test");
  
  }
  </code></pre>
  
  <p>please let me know any changes </p>