title: Stored procedure has no parameters and arguments were supplied
body: <p>I have a function which will get the records from the database.</p>
  
  <pre><code>public List&lt;Issue&gt; Load_Issues()
  {
      SqlDataReader Sdr;
      List&lt;Issue&gt; ObjList = new List&lt;Issue&gt;();
      cmd.CommandText = "Get_All_Issue";
  
      try
      {
          cmd.Connection = con;
          cmd.CommandType = CommandType.StoredProcedure;
  
          con.Open();
          Sdr = cmd.ExecuteReader();
  
          while (Sdr.Read())
          {
              // here I pull out records from database..
          }
      }
      catch (Exception ex)
      {
          throw ex;
      }
      finally
      {
          con.Close();
      }
  
      return ObjList;
  }
  </code></pre>
  
  <p>The function I am using to bind the Gridview is as follows</p>
  
  <pre><code>public void Bind_Issues()
  {
      gdIssues.DataSource = Bl.Load_Issues()();
      gdIssues.DataBind();
  }
  </code></pre>
  
  <p>My stored procedure doesn't take any arguments. While the page loads for the first time it is working fine and binding the records to the gridview.</p>
  
  <p>We have option to edit the records also, so what happening is after updating records I need to again bind the records to gridview. So I am again using my <code>Load_Issues</code> function to do it. But this time it is throwing error </p>
  
  <blockquote>
    <p>Get_All_Issues  has no parameters and arguments were supplied</p>
  </blockquote>