in item updating event of list, i want to update the same item which being updating but i don't want to change and update the fields of the item but the permissions of it.
An advantage of using Item Updating to set field values is that the values will be visible to the user after they submit their changes in a non-datasheet view.
Because Item Updated is asynchronous, the user may not see their new values when they see the list after submitting the edit.
I understand you need to add a field to your list and you utilize it for storage of data that is usable across events.).
This property bag is perfect for storing "system" or temporary stuff, you will never want your users to see.
I cann't do comparision here because before properties does not provide old values in the list item.
In Item Updating event, I want to do the processing, if value changes.
i wrote the common code for this i mean i got the item and changed the permissions of it and then Disabled Event Firing and updated the item, but it won't update and sharepoint gives me the Conflict error(the one close your browser and blah blah stuff). Also, do not forget to use Allow Unsafe Updates=TRUE on your SPWeb.
You need to create a new SPField Look Up cast the context item to that object.
Item Updated In Item Updating event, I am checking one field value for a change.
I am looking for a solution where I can set the bit when field value changes in Item Updating.
Well, create one column in the Main List, where values are changes say "OLDVALUES". List Item["OLDVALUES"]=Value1 ";" Value2 ";" Value3 ";"; in Item Updating event(take Value1, Values2 and Value3 using the properties. Now in Item Updating, use like string old Value = properties. To String(); and slip in array and then you can set global variables and access them in your code.