Logo 
Search:

MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

Displaying error message in event handler

  Asked By: Marques    Date: Apr 28    Category: MOSS    Views: 1563

I have written a code for event handler ('ItemAdding') for a list.
I want to display the custom error message. I am using the following
code for the same

properties.ErrorMessage = "some xxx";
properties.Status = SPEventReceiverStatus.CancelWithError;
properties.Cancel = true;

It is working fine, but the error message is displaying in a new
page. I want to display the error message in the same page instead of a
new page.

Is it possible to display the error message in the same page? If it is
possible please suggest the steps to achive the same.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Displaying error message in event handler Or get search suggestion and latest updates.




Tagged: