title: how to pass a parameter value from rdlc report to a method in web forms project?
body: <p>i have a rdlc report that is bound to following class:</p>
  
  <pre><code>public class Product
  {
    DataContext context;
  
    public Product()
    {
      context = new DataContext();
    }
    public List&lt;Product&gt; GetBoughtItemsForUser(string userName)
    {
      //linq query to collect data
      return query.ToList();
    }
  
    public string Name {get;set;}
    public int Quantity {get;set;}
  }
  </code></pre>
  
  <p>in my rdlc i've set the report dataset to GetBoughtItemsForUser. now i want to pass the userName value which is actually the Page.User.Identity.Name so how should i do this? </p>