title: how can i bind business object of c# in crystal or rdlc report?
body: <p>First let me tell you one thing, I have never worked with any sort of reporting yet. I have read all the related question and answer on this topic. But could not find any concrete solution. </p>
  
  <p>My problem is I have a very simple report to make where I have to show a row from a view from the database. In order to have that row, I have created a business object (entity). that entity is holding my row perfectly. I have tried crystal report and rdlc report as well. But at the end I will choose only one. So I have a crystal report in my solution. In my aspx form I have taken a report-viewer. but I don know how to make these three things work together, i.e. the report, the report viewer and the object or entity that is holding the information.</p>
  
  <p>Now the code goes here</p>
  
  <p>the name of the crystal report is FormSaleMoneyReceipt.rpt</p>
  
  <p>my aspx page is </p>
  
  <pre><code>&lt;form id="form1" runat="server"&gt;
  &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server"&gt;&lt;/asp:SqlDataSource&gt;
  &lt;div id = "SearchPlace"&gt;
      &lt;label for =""&gt;Candidate ID:&lt;/label&gt;&lt;asp:TextBox runat = "server" ID = "txtCandidateId"&gt;&lt;/asp:TextBox&gt;
      &lt;label for =""&gt;Form SL#:&lt;/label&gt;&lt;asp:TextBox runat = "server" ID = "txtFormSl"&gt;&lt;/asp:TextBox&gt;
      &lt;asp:Button runat = "server" ID = "btnShowReport" Text = "Show Report" 
          onclick="btnShowReport_Click" /&gt;
  &lt;/div&gt;
  &lt;div id = "ReportViewrHolder"&gt;
      &lt;CR:CrystalReportViewer ID="CrystalReportViewerMRN" runat="server" AutoDataBind="true" /&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My code behind file is </p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
  }
  
  protected void btnShowReport_Click(object sender, EventArgs e)
  {
      int candidateId = 0;
  
      string formSl = txtFormSl.Text;
      ViewFormSaleMoneyReceiptEntity formSaleMoneyReceiptEntity = new ViewFormSaleMoneyReceiptEntity();
      if(txtCandidateId.Text != "")
      {
          candidateId = Convert.ToInt32(candidateId);
          formSaleMoneyReceiptEntity = ViewFormSaleMoneyReceipt_DAO.GetMoneyReceiptByID(candidateId);
          //CrystalReportViewerMRN.ReportSource = formSaleMoneyReceiptEntity; 
      }
      if(txtFormSl.Text!="")
      {
          formSaleMoneyReceiptEntity = ViewFormSaleMoneyReceipt_DAO.GetMoneyReceiptByFormSL(formSl);
          //CrystalReportViewerMRN.ReportSource = formSaleMoneyReceiptEntity; 
      }
  }
  </code></pre>
  
  <p>please, please give me a solution, I am desperately in need of the solution. Thank you all the smart tech geeks in advance.</p>