No overload matches delegate

I have no idea whats causing this error.

Any ideas?

Error	1	No overload for 'ObjectDataSource2_Updating' matches delegate
'System.Web.UI.WebControls.ObjectDataSourceMethodEventHandler'	C:\\projects\\FrontEndVS\\showList.ascx	47

Please, show your code.

This is the code for objectdatasource2_updating:

    protected void ObjectDataSource2_Updating(object sender, ObjectDataSourceSelectingEventArgs e)
    {
        TextBox tOperator = (TextBox)FormView1.FindControl("txtOperator");
        e.InputParameters["Operator"] = txtOperator.Text;

        TextBox tPriceGroup = (TextBox)FormView1.FindControl("txtPriceGroup");
        e.InputParameters["PriceGroup"] = txtPriceGroup.Text;

        TextBox tSellRateDay = (TextBox)FormView1.FindControl("txtSellRateDay");
        e.InputParameters["SellRateDay"] = txtSellRateDay.Text;

        TextBox tSellRateEvening = (TextBox)FormView1.FindControl("txtSellRateEvening");
        e.InputParameters["SellRateEvening"] = txtSellRateEvening.Text;

        TextBox tSellRateWeekend = (TextBox)FormView1.FindControl("txtSellRateWeekend");
        e.InputParameters["SellRateWeekend"] = txtSellRateWeekend.Text;

    }

This is the code thats in the class:

    public int updateLCRDetails(string Operator, string PriceGroup, string SellRateDay, string SellRateEvening, string SellRateWeekend)
    {
        objComm = new SqlCommand();
        objComm.Connection = objConn;
        objComm.CommandText = "FE_UpdateLCRDetails";
        objComm.CommandType = CommandType.StoredProcedure;

        objComm.Parameters.AddWithValue("@Operator", Operator);
        objComm.Parameters.AddWithValue("@PriceGroup", PriceGroup);
        objComm.Parameters.AddWithValue("@SellRateDay", SellRateDay);
        objComm.Parameters.AddWithValue("@SellRateEvening", SellRateEvening);
        objComm.Parameters.AddWithValue("@SellRateWeekend", SellRateWeekend);

This is the object datasource control…

<asp:ObjectDataSource
ID="ObjectDataSource2"
runat="server"
TypeName="lcrtariff"
UpdateMethod="updateLCRDetails"
OnUpdating="ObjectDataSource2_Updating"
  >

I am 100% sure its going to be 1 tiny little thing, as per usual.

ahhhhhhhh, ive worked it out…

it had to be:

protected void ObjectDataSource2_Updating(object sender, ObjectDataSourceSelectingMethodArgs e)

how annoying that you spend hours on some annoying problem, then as soon as you give up and post a message, you end up working it out for yourself lol

lol been there a 100 times :slight_smile: even more annoying is when users tell you something is wrong and then you spend hours trying to figure it out only find out they gave you the wrong set of business rules … oooppps