|
Home > Archive > Microsoft Content Management Server > December 2004 > catching the save event
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 |
catching the save event
|
|
| Nikolaj 2004-12-16, 6:50 pm |
| I have a usercontrol which is placed on a template. Can I catch an event and
call a method in this user control when the posting is saved.
I'm sort of implementing my own variant of a placeholder control. One of the
main differences is that I do not bind it to a placeholder definition but I
save content by other means. It is not a problem to implement something like
the CreatePresentationChildControls method (or the
CreateAuthoringChildControls) and the LoadContent methods, but how do I
implement something like the SavePlaceholderContent method?
Thanks
Nikolaj
| |
| Stefan [MSFT] 2004-12-16, 6:50 pm |
| Hi Nikolaj,
this is possible.
See the sample on how to register the events:
http://blogs.msdn.com/stefan_gossne.../25/119613.aspx
Cheers,
Stefan.
"Nikolaj" <Nikolaj@discussions.microsoft.com> wrote in message
news:93FFE517-B8CD-43E9-9A56-53B45A83BA57@microsoft.com...
> I have a usercontrol which is placed on a template. Can I catch an event
and
> call a method in this user control when the posting is saved.
>
> I'm sort of implementing my own variant of a placeholder control. One of
the
> main differences is that I do not bind it to a placeholder definition but
I
> save content by other means. It is not a problem to implement something
like
> the CreatePresentationChildControls method (or the
> CreateAuthoringChildControls) and the LoadContent methods, but how do I
> implement something like the SavePlaceholderContent method?
>
> Thanks
> Nikolaj
| |
| Nikolaj 2004-12-16, 6:50 pm |
| Thanks! Now I can catch the event, but a bit too late. I have loaded a
usercontrol in authoring mode which contains some check boxes. It is the
content of these check boxes I need to save. But when my SaveContent method
is invoked the usercontrol is null. How does a "real" placeholdecontrol do
this trick? Has it got something to do with the EnsureChildControls method?
"Stefan [MSFT]" wrote:
> Hi Nikolaj,
>
> this is possible.
> See the sample on how to register the events:
> http://blogs.msdn.com/stefan_gossne.../25/119613.aspx
>
> Cheers,
> Stefan.
>
> "Nikolaj" <Nikolaj@discussions.microsoft.com> wrote in message
> news:93FFE517-B8CD-43E9-9A56-53B45A83BA57@microsoft.com...
> and
> the
> I
> like
>
>
>
| |
| Stefan [MSFT] 2004-12-16, 6:50 pm |
| Hi Nikolaj,
yes the ensurechildcontrols method is required.
But you could also extract the content from the Request.Form array.
Cheers,
Stefan.
"Nikolaj" <Nikolaj@discussions.microsoft.com> wrote in message
news:655633D2-AA35-4ED7-AE75-B8CBD536E92C@microsoft.com...
> Thanks! Now I can catch the event, but a bit too late. I have loaded a
> usercontrol in authoring mode which contains some check boxes. It is the
> content of these check boxes I need to save. But when my SaveContent
method
> is invoked the usercontrol is null. How does a "real" placeholdecontrol do
> this trick? Has it got something to do with the EnsureChildControls
method?[vbcol=seagreen]
>
> "Stefan [MSFT]" wrote:
>
event[vbcol=seagreen]
of[vbcol=seagreen]
but[vbcol=seagreen]
something[vbcol=seagreen]
I[vbcol=seagreen]
|
|
|
|
|