title: Sharepoint : Event Receiver : Item Adding
body: <p>Anybody used the "ItemAdding" method successfully in an Event Receiver in Sharepoint for validation?</p>
  
  <p>I think it just can't work properly for validation purposes because it seems that :</p>
  
  <ul>
  <li>You can't access the data you just
  entered in a form </li>
  <li>If you add an error    message,
  instead of displaying the    form
  back with your error, Sharepoint<br>
  display the big ugly error page.</li>
  </ul>
  
  <p>Here's what I found so far on the web for the ItemAdding method :</p>
  
  <p><a href="http://www.sharepoint-tips.com/2006/09/synchronous-add-list-event-itemadding.html" rel="nofollow noreferrer">http://www.sharepoint-tips.com/2006/09/synchronous-add-list-event-itemadding.html</a></p>
  
  <p><a href="http://www.moss2007.be/blogs/vandest/archive/2007/07/20/wss-3-0-event-handler-pre-event-cancelling-issues.aspx" rel="nofollow noreferrer">http://www.moss2007.be/blogs/vandest/archive/2007/07/20/wss-3-0-event-handler-pre-event-cancelling-issues.aspx</a></p>
  
  <p><a href="http://www.synergyonline.com/blog/blog-moss/Lists/Posts/Post.aspx?ID=25" rel="nofollow noreferrer">http://www.synergyonline.com/blog/blog-moss/Lists/Posts/Post.aspx?ID=25</a></p>
  
  <p>Anyway, if somebody successfully used that method, please tell me how because I think that it's just broken/missing something!</p>
  
  <p>Thanks!</p>