1) After Properties will be NULL when Item Updating event is called because of a code-update to list: But, when the list is being updated by code, and the code does not update the "Email" (for example, the code just updates "First Name" in the list) then properties. To String() will have the correct look up value like "3;#karthik", but the value of properties. To String() will have only "3" (just the look up ID).After Properties["Email"] will be NULL in the event receiver code. Is there any way to see the "current lifecycle progress" in debugging? I have a Grid View1 where selecting the item populates the abovementioned Form View1. Disabling this Text Box1 from another Grid View1_Selected Index Changed works fine.The Form View is always in Edit mode, because I'm using it with a Gridview to edit the "selected" Gridview item.Also, I'm using a bit more textboxes and I want to disable some with a condition that 24 hours has passed from the creation of the Grid View item (users allowed to upate only some textboxes after 24 hours). Anywyas I changed my event receiver to a synchronous Item Added and Item Updated so I can use Item and now everything works fineproperties. I'm thinking there's something going on where maybe the ctid needs to be surrounded by 's before it will work? Also, just putting the ctid in as a string tends to get me errors.
We can turn this off to prevent our loop from occuring.
The result is that my code in the Item Updated event gets like "overwritten" and the Text Box1 doesn't get disabled. Enabled = false;" then I see that after the Item Updated event it jumps to the aspx page again and steps through the Text Boxes.
The point is that I need to disable some of the Text Boxes in the Form View1 based on, for example, user access levels.
event when an Update button (a button with its Command Name property set to "Update") within the control is clicked, but before the Form View control updates the record.
This allows you to provide an event-handling method that performs a custom routine, such as HTML encoding the values of a record before updating it in the data source, whenever this event occurs.
Search for c itemupdating:
To String() , before CType Name = null , after CType Name = null , base CType Name = mapping Handler. Sharepoint Content Type Name; foreach (SPContent Type ct in properties.