Error in ASP.NET C# (implicit conversion)
<p>I am new in ASP.NET programming. Please help me.</p>

<pre><code> void DisplayData()
    {
        DataTable dt = new DataTable();
        //objBuyer.BuyerId = Convert.ToInt64(Request.QueryString["id"]);
    **ERROR--&gt;&gt;&gt;**   dt = objBuyer.DisplayData();********
        if (dt.Rows.Count &gt; 0)
         {
        txtBName.Text = dt.Rows[0][1].ToString();
</code></pre>

<blockquote>
  <p>ERROR:Cannot implicitly convert type 'void' to 'System.Data.DataTable'</p>
</blockquote>
