Hi!

I wan't to cancel an ItemUpdating event with a graceful custom message,
instead i get an ugly ASPX message.
In ItemDeleting the same code shows a graceful message in the browser.

Code used:
properties.Cancel = true;
properties.ErrorMessage = "some error";

Why the cancel of two different events generate two different behaviors?
How can i have a greceful behavior in cancel ItemUpdating?

Thanks!

Re: Cancel ItemUpdating event problem! by Mike

Mike
Fri May 11 08:21:45 CDT 2007

The most suitable place for development questions is

microsoft.public.sharepoint.development_and_programming

There's where most SharePoint programmers now are.

Say there (as you should have done here) which SharePoint program and
especially *version* you are asking about.

If you post to a .windowsservices newsgroup please post this kind of
question ONLY to the .windowsservices.development newsgroup

(Follow-Up set to microsoft.public.sharepoint.windowsservices.development)

Mike Walsh
WSS FAQ http://www.wssfaq.com
No private e-mail please.

"Gonçalo Boléo" <gboleo@hotmail.com> wrote in message
news:9B3F4B01-A53E-4221-8C27-9D9137AA2304@microsoft.com...
> Hi!
>
> I wan't to cancel an ItemUpdating event with a graceful custom message,
> instead i get an ugly ASPX message.
> In ItemDeleting the same code shows a graceful message in the browser.
>
> Code used:
> properties.Cancel = true;
> properties.ErrorMessage = "some error";
>
> Why the cancel of two different events generate two different behaviors?
> How can i have a greceful behavior in cancel ItemUpdating?
>
> Thanks!


Re: Cancel ItemUpdating event problem! by Mike

Mike
Fri May 11 08:22:12 CDT 2007

The most suitable place for development questions is

microsoft.public.sharepoint.development_and_programming

There's where most SharePoint programmers now are.

Say there (as you should have done here) which SharePoint program and
especially *version* you are asking about.

If you post to a .windowsservices newsgroup please post this kind of
question ONLY to the .windowsservices.development newsgroup

(Follow-Up set to microsoft.public.sharepoint.windowsservices.development)

Mike Walsh
WSS FAQ http://www.wssfaq.com
No private e-mail please.

"Gonçalo Boléo" <gboleo@hotmail.com> wrote in message
news:9B3F4B01-A53E-4221-8C27-9D9137AA2304@microsoft.com...
> Hi!
>
> I wan't to cancel an ItemUpdating event with a graceful custom message,
> instead i get an ugly ASPX message.
> In ItemDeleting the same code shows a graceful message in the browser.
>
> Code used:
> properties.Cancel = true;
> properties.ErrorMessage = "some error";
>
> Why the cancel of two different events generate two different behaviors?
> How can i have a greceful behavior in cancel ItemUpdating?
>
> Thanks!