In the fist method you can use After Properties to set up value in the hidden field. Im pretty sure you cant set them (they are only get properties) other than by setting a value in the field itself.
It might work, but before/after properties work differently on different types of items, and often not the way you would expect...
If the name isn’t changed, the changes are saved to the Share Point list.
Before you can deploy the event receiver you have to change the file to bind the Update Adding event receiver to all custom lists.
I don't want to let sharepoint call Item Updated after Item Added.
and/or Is it possible to pass a parameter from Itam Added to Item Updated event method?
This event occurs before the data is saved to the Share Point list.
To check if the name of the planet is changed, you can compare the Title column before the changes with the Title of the changed item.
When adding publishing pages, Item Updated is called several times.This was wrong, I corrected it to compare the item's title to another variable containing the file's item-title (not e.g. I anticipate that your root list has the same event receiver assigned to it, and that causes the recursion.The problem, of course, may be not so obvious, but anyway, to prevent event receiver to fire several times, there is a common practice in Share Point: just use Disable Event Firing and Enable Event Firing methods. You can also use event receivers to validate the data that the user wants to change.This walkthrough is based on the first one where I have a custom list with planets of our solar system.