Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

itemupdating event receiver issue

  Asked By: Krista    Date: Mar 09    Category: Sharepoint    Views: 2719

I have an issue that I can't seem to get my head around - some help
would be appreciated!

So all I am trying to do for the moment is query three fields with an event
The receiver is tied to a list on the itemupdating() event.
The code is below and all fields have existing values in them.
The ER should simply return the values in the fields and cancel the update.
It does correctly cancel the update, and displays the 'error' page so there
is no bug in the code, but it does not display the value within either field
(it displays "" // "")
Can anyone see what might be going on here?


public override void ItemUpdating(SPItemEventProperties properties){

properties.ErrorMessage =
properties.AfterProperties["Actual_x0020_Award_x0020_Quarter"] + " // " +


properties.Cancel = true;
properties.Status =




1 Answer Found

Answer #1    Answered By: Cristopher Gould     Answered On: Mar 09

Have you tried using the .ToString() method on your two calls to
AfterProperties[] ?

Didn't find what you were looking for? Find more on itemupdating event receiver issue Or get search suggestion and latest updates.