zachvaldez
asked on
Error in asp.net page
I got this error on the page when I run this code...
<asp:ListView ID="lvEmp"
DataKeyNames="TID"
runat="server"
OnItemEditing="lvEmp_ItemE diting"
OnItemUpdating="lvEmp_Item Updating"
OnItemCanceling="lvEmp_Ite mCanceling "
OnItemDeleting="lvEmp_Item Deleting"
InsertItemPosition="LastIt em"
OnItemInserting="lvEmp_Ite mInserting ">
I received this errror
'lvEmp_ItemEditing' is not a member of 'ASP.webform1_aspx'
however if I comment out it like the lines, it worked ok. What could be the reason?
<asp:ListView ID="lvEmp"
DataKeyNames="TID"
runat="server">
<%- OnItemEditing="lvEmp_ItemE diting"
OnItemUpdating="lvEmp_Item Updating"
OnItemCanceling="lvEmp_Ite mCanceling "
OnItemDeleting="lvEmp_Item Deleting"
InsertItemPosition="LastIt em"
OnItemInserting="lvEmp_Ite mInserting --%>>
<asp:ListView ID="lvEmp"
DataKeyNames="TID"
runat="server"
OnItemEditing="lvEmp_ItemE
OnItemUpdating="lvEmp_Item
OnItemCanceling="lvEmp_Ite
OnItemDeleting="lvEmp_Item
InsertItemPosition="LastIt
OnItemInserting="lvEmp_Ite
I received this errror
'lvEmp_ItemEditing' is not a member of 'ASP.webform1_aspx'
however if I comment out it like the lines, it worked ok. What could be the reason?
<asp:ListView ID="lvEmp"
DataKeyNames="TID"
runat="server">
<%- OnItemEditing="lvEmp_ItemE
OnItemUpdating="lvEmp_Item
OnItemCanceling="lvEmp_Ite
OnItemDeleting="lvEmp_Item
InsertItemPosition="LastIt
OnItemInserting="lvEmp_Ite
you dont have the OnItemEditing="lvEmp_ItemE diting" event implemented in your code behind so maybe its deleted or , you forgot to create one.
ASKER
I have it also I'm code behind
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
do you have a lvEmp_ItemEditing method? yes