Assembly = "Assembly Name, Version=x.x.x.x, Culture=neutral, Public Key Token=the Public Key Token" sp Event Receiver Def. Update(); To attach an Item Updating event receiver, all you need to do it replace the type from SPEvent Receiver Type. Item Updating, and ofcourse the class / assembly information if you have the implementation in a different class / assembly.that can be used to distinguish if the update is because of check-in or due to other reasons.However, when i set it to false, and generate rows dynamically using Template Field - Item Updating stops working (but Item Deleting works! This is very strange, here's the code (this is user control which contains only asp:details View, so place it on any page to test it) Do the following test: compile and run, see if update and delete buttons work (throw exceptions).
< Elements xmlns=" < Receivers List Template Id="100"> < Receiver> < Name> Schedule List Event Receiver</Name> < Type> Item Added</Type> < Sequence Number>10000</Sequence Number> < Assembly>jeremythake.tvshowschedulesite, Version=126.96.36.199, Culture=neutral, Public Key Token=8eb9a930004f2f1a</Assembly> < Class>jeremythake.tvshowschedulesite. Item Added, "jeremythake.tvshowschedulesite, Version=188.8.131.52, Culture=neutral, Public Key Token=8eb9a930004f2f1a", "jeremythake.tvshowschedulesite. Event Name is "Cancel" Is it a bug in Details View? However, this does not solve my problem because, as you see, I want to generate templates basing on value from View State, and View State is not available on init...In this example it will of course work, because Get Fake Data() will be called but in real application it would be unacceptable to hit the database on each page request... Event Receivers are triggered by certain events on either a SPWeb, SPList or SPList Item. Here is the solution To work around this behavior, examine the vti_sourcecontrolcheckedoutby property inside an event receiver.Event Receivers can be attached by either using feature elements definitions or by using the object model (using Feature Receivers). If the vti_sourcecontrolcheckedoutby property exits in the Before Properties property but not in the After Properties property, the event was caused by checking in a document.The event handler method that are attached are defined in a separate class Event Receiver class that implements either SPWeb Event Receiver, SPList Event Receiver, SPItem Event Receiver or SPEmail Event Receiver. If you want to change a property on the List Item please be aware that you need to use the . Update() within your event receiver you will receive errors such as Save Conflicts. Item Updated, "jeremythake.tvshowschedulesite, Version=184.108.40.206, Culture=neutral, Public Key Token=8eb9a930004f2f1a", "jeremythake.tvshowschedulesite. The following sample code shows you how to do this.