title: Passing Parameters to ReportView using C#?
body: <p>Everything ok? 
  I have a mission today, I never did something like this before.
  Well...
  I have a ReportView in my Project:</p>
  
  <p>See him Codebehind:</p>
  
  <pre><code>private Customers GetData()
          {
              string conString = ConfigurationManager.ConnectionStrings["SCBRConnectionString"].ConnectionString;
              SqlCommand cmd = new SqlCommand("STP_REL_SUSTENTABILIDADE");
              using (SqlConnection con = new SqlConnection(conString))
              {
                  using (SqlDataAdapter sda = new SqlDataAdapter())
                  {
                      cmd.Connection = con;
                      cmd.CommandType = CommandType.StoredProcedure;
                      sda.SelectCommand = cmd;
                      sda.SelectCommand.Parameters.Add(new SqlParameter("@ANO", "2014"));
                      sda.SelectCommand.Parameters.Add(new SqlParameter("@CONS_TP_INDICE_ID", "1"));
                      sda.SelectCommand.Parameters.Add(new SqlParameter("@INDICADOR", "C"));
                      sda.SelectCommand.Parameters.Add(new SqlParameter("@UNIDADE", "1"));
                      sda.SelectCommand.Parameters.Add(new SqlParameter("@UNIDADE_ADM", "1"));
                      sda.SelectCommand.Parameters.Add(new SqlParameter("@ENDERECO", "8"));
                      sda.SelectCommand.Parameters.Add(new SqlParameter("@TIPO_MEDIDORES", "1"));
                      sda.SelectCommand.Parameters.Add(new SqlParameter("@MEDIDORES", "93"));
  
                      using (Customers dsCustomers = new Customers())
                      {
                          sda.Fill(dsCustomers, "DataTable1");
                          return dsCustomers;
                      }
                  }
              }
          }
  </code></pre>
  
  <p>paying attention until here, you'll see the Parameters called by GetData:
  ANO, CONS_TP_INDICE_ID, INDICADOR, UNIDADE, UNIDADE_ADM, ENDERECO, TIPO_MEDIDORES AND MEDIDORES.</p>
  
  <p>At Stored Procedure has this same parameters, but at table (sql) don't have ANO and INDICADOR.</p>
  
  <p>When I execute the Project don't show me the parameters from GetData and I don't know how I input the two parameters ANO , INDICADO to bring results.
  The Report comes empty, but running the Stored Procedure bring me 1 result sucessfull.</p>
  
  <p>What has Wrong?</p>