Hi I'm writing an event to User Information List...
Here I'm using some conditions. If they are not met then I have show up an error message and stop the event to complete
in the below code I'm using the ItemUpdated Event of the list. In custom code a condition is checked if satisfies then error page should come....
public override void ItemUpdated(SPItemEventProperties properties)
{
CustomCode(properties);
}
void CustomCode(SPItemEventProperties properties)
{
if (alreadyExist){
alreadyExist =
false;properties.ErrorMessage =
"error message";properties.Cancel =
true;}
Now when I run the above code this message is not coming.....my code is working but it is not opening any error page it directs the user to User Information List......
Please Help...
Thanks
Manu