Microsoft Content Management Server - How do I cancel the AuthoringSaveNewAction?

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > July 2004 > How do I cancel the AuthoringSaveNewAction?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How do I cancel the AuthoringSaveNewAction?
PV

2004-05-19, 8:40 pm

In the thread "How do I cancel the AuthoringReeditSaveAndExitAction", we
discussed how to cancel the page redirect so that the error that is
displayed in the console does not disappear. That one was relatively simple
to implement by inheriting from AuthoringReeditSaveAction, overriding the
PerformActionBehavior, calling the ancestor action (to save the page),
catching any errors, and only redirect IF there were no errors.

Things are a little more difficult for AuthoringSaveNewAction. There is no
"non-redirecting" action to inherit from. If I inherit from
AuthoringSaveNewAction, I can't just call the ancestor's
PerformActionBehavior method because that will perform the redirect - I
don't have a chance to do it manually.

The only option I see is to completely implement PerformActionBehavior
myself. But what steps need to be taken?



PV

2004-07-01, 3:06 am

But the custom controls save state just fine when an error happens when in
edit mode. They just don't maintain state when the error happens in new
page mode. CMS must be doing something different. If MS will not implement
error handling in new page mode properly, can't they at least shed some
light on what is going on behind the scenes so that I can code a
work-around?

"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:%23jcxpZqWEHA.1684@tk2msftngp13.phx.gbl...
> Hi PV,
>
> sorry I never tried this. So: no idea.
> But it sounds like an ASP.NET problem as the user controls do not preserve
> the state.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>
> MCMS FAQ:
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
>

http://www.gotdotnet.com/community/...t+S
erver

> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> "PV" <philipv@nospam.computronix.com> wrote in message
> news:OVJbfunWEHA.204@TK2MSFTNGP10.phx.gbl...
newer[vbcol=seagreen]
call[vbcol=seagreen]
> wanted.
> hast
> added
context[vbcol=seagreen]
> get
second[vbcol=seagreen]
> Bleh...
> appears
> at
that[vbcol=seagreen]
that[vbcol=seagreen]
> I
> has
AuthoringSaveNewAction.[vbcol=seagreen]
what[vbcol=seagreen]
the[vbcol=seagreen]
> WebAuthorErrorEventArgs(ErrorModeContain
er.FailedSaveNewPage,ex);
message[vbcol=seagreen]
> that
> the
> errors.
AuthoringSaveNewAction.[vbcol=seagreen]
>
>



Stefan [MSFT]

2004-07-01, 7:48 am

Hi PV,

this is something I never did. So I cannot provide infos.
If you need further assistance you should open a support case with
Microsoft.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"PV" <philipv@nospam.computronix.com> wrote in message
news:#kaGu0yXEHA.3480@TK2MSFTNGP11.phx.gbl...
> But the custom controls save state just fine when an error happens when in
> edit mode. They just don't maintain state when the error happens in new
> page mode. CMS must be doing something different. If MS will not

implement
> error handling in new page mode properly, can't they at least shed some
> light on what is going on behind the scenes so that I can code a
> work-around?
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:%23jcxpZqWEHA.1684@tk2msftngp13.phx.gbl...
preserve[vbcol=seagreen]
> rights.
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
>

http://www.gotdotnet.com/community/...t+S
erver

> newer
> call
> context
I[vbcol=seagreen]
> second
looking[vbcol=seagreen]
> that
event[vbcol=seagreen]
> that
Page.Redirect[vbcol=seagreen]
> AuthoringSaveNewAction.
> what
> the
> message
error[vbcol=seagreen]
save[vbcol=seagreen]
> AuthoringSaveNewAction.
from[vbcol=seagreen]
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com