Link to home
Start Free TrialLog in
Avatar of zachvaldez
zachvaldezFlag for United States of America

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_ItemEditing"
   OnItemUpdating="lvEmp_ItemUpdating"
   OnItemCanceling="lvEmp_ItemCanceling"
   OnItemDeleting="lvEmp_ItemDeleting"
   InsertItemPosition="LastItem"
   OnItemInserting="lvEmp_ItemInserting">

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_ItemEditing"
   OnItemUpdating="lvEmp_ItemUpdating"
   OnItemCanceling="lvEmp_ItemCanceling"
   OnItemDeleting="lvEmp_ItemDeleting"
   InsertItemPosition="LastItem"
   OnItemInserting="lvEmp_ItemInserting--%>>
Avatar of Lord_Death
Lord_Death

you dont have the OnItemEditing="lvEmp_ItemEditing" event implemented in your code behind so maybe its deleted or , you forgot to create one.
Avatar of zachvaldez

ASKER

I have it also I'm code behind    
ASKER CERTIFIED SOLUTION
Avatar of disrupt
disrupt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
do you have a lvEmp_ItemEditing method? yes