title: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method Update
body: <p>i tried every solution so far with this similar problem and i get this error everytime.
  Plz Help!!</p>
  
  <p>static method</p>
  
  <pre><code>[DataObjectMethod(DataObjectMethodType.Update)]
  public static void updateCustomer(int CustomerID, string firstname, string lastname, string email, int AccountNum)
  {
  
      SqlConnection connection = new SqlConnection(getConnectionString());
  
      connection.Open();
  
      SqlCommand command = new SqlCommand("sp_updateCustomer", connection);
      command.CommandType = CommandType.StoredProcedure;
      command.Parameters.AddWithValue("@Cust_Id", CustomerID);
      command.Parameters.AddWithValue("@Cust_Fname", firstname);
      command.Parameters.AddWithValue("@Cust_Lname", lastname);
      command.Parameters.AddWithValue("@Cust_Email", email);
      command.Parameters.AddWithValue("@Bank_Account_num", AccountNum);
  
  
  
  
      command.ExecuteNonQuery();
  
      connection.Close();
  }
  </code></pre>
  
  <p>GridView</p>
  
  <p>
          
              
          
          
          
          
          
          
          
          
          
          
      </p>
  
  <pre><code>&lt;asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="viewAllCustomer" TypeName="BusinessLogic" UpdateMethod="updateCustomer" &gt;
      &lt;UpdateParameters&gt;
          &lt;asp:Parameter Name="CustomerID" Type="Int32" /&gt;
          &lt;asp:Parameter Name="firstname" Type="String" /&gt;
          &lt;asp:Parameter Name="lastname" Type="String" /&gt;
          &lt;asp:Parameter Name="email" Type="String" /&gt;
          &lt;asp:Parameter Name="AccountNum" Type="Int32" /&gt;
      &lt;/UpdateParameters&gt;
  </code></pre>
  
  <p></p>