G
Gary Wardell
HI,
I'm getting this error:
No overload for 'DoItemUpdated' matches delegate
'System.Web.UI.WebControls.DetailsViewUpdatedEventHandler'
on line=22
Line 22 reads:
<aspetailsView ID="DetailsView1" runat="server" AutoGenerateRows="false"
style="top: 25px; left: 15px; position: absolute; width: 622px"
DataSourceID="SqlDataSource3"
AutoGenerateEditButton="true"
AutoGenerateDeleteButton="true"
AutoGenerateInsertButton="true"
OnItemUpdated="DoItemUpdated"
The function in the code behind reads:
protected virtual void DoItemUpdated(DetailsViewUpdatedEventArgs Args)
{
lblMsg.Text = " Record " + Args.Keys["BookID"] + " updated";
}
Since I am a bit new to ASP.net and C# I'm at a loss as to what it's trying
to tell me?
Is it saying it can't find the function?
Is it saying that the definition of the function doesn't match what is
expected?
I've tried different definitions, the message doesn't change.
It can find the Page_Load function in the same file which has a similar
definition.
Gary
I'm getting this error:
No overload for 'DoItemUpdated' matches delegate
'System.Web.UI.WebControls.DetailsViewUpdatedEventHandler'
on line=22
Line 22 reads:
<aspetailsView ID="DetailsView1" runat="server" AutoGenerateRows="false"
style="top: 25px; left: 15px; position: absolute; width: 622px"
DataSourceID="SqlDataSource3"
AutoGenerateEditButton="true"
AutoGenerateDeleteButton="true"
AutoGenerateInsertButton="true"
OnItemUpdated="DoItemUpdated"
The function in the code behind reads:
protected virtual void DoItemUpdated(DetailsViewUpdatedEventArgs Args)
{
lblMsg.Text = " Record " + Args.Keys["BookID"] + " updated";
}
Since I am a bit new to ASP.net and C# I'm at a loss as to what it's trying
to tell me?
Is it saying it can't find the function?
Is it saying that the definition of the function doesn't match what is
expected?
I've tried different definitions, the message doesn't change.
It can find the Page_Load function in the same file which has a similar
definition.
Gary