MOSS Forum

 
Home » Forum » MOSS       Ask a questionRSS Feeds

Displaying error message in event handler

  Asked By: Marques Duran         Date: Apr 28, 2010      Category: MOSS      Views: 426
 

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.


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:            

 

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].