title: Item Adding in event receiver sharepoint 2010
body: <pre><code> public override void ItemAdding(SPItemEventProperties properties)
         {
             base.ItemAdding(properties);
             SPItem itemBeingAdded = properties.ListItem;
             var startTime = itemBeingAdded["Start Time"];
             // Some code goes here.
         }
  </code></pre>
  
  <p>I am firing this event while adding an item in a calender list. It is getting fired. No problem. But I am not getting any value from <code>properties</code>. In the above code <code>startTime</code> gives me nothing. Actually, I want to access the column field of the item (<code>properties</code> in my case) is being added. </p>
  
  <p><img src="https://i.stack.imgur.com/k1SXy.png" alt="enter image description here"></p>
  
  <p>When the user will click in save button, How can I get the column value in code behind (Inside the <code>ItemAdding(SPItemEventProperties properties) method</code>). Let say, I need <code>Start Time</code> and <code>End Time</code> to compare them with some other values. Problem is in the <code>ItemAdding</code> method. ItemUpdating is working fine.</p>
  
  <pre><code>public override void ItemUpdating(SPItemEventProperties properties)
         {
  
             base.ItemUpdating(properties);
             SPItem itemBeingAdded = properties.ListItem;
             var startTime = itemBeingAdded["Start Time"];
         }
  </code></pre>