Microsoft Content Management Server - Passing values from a webcontrol to placeholder

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > October 2007 > Passing values from a webcontrol to placeholder





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 Passing values from a webcontrol to placeholder
Mike

2007-10-08, 1:23 pm

hi,
what is a best way to pass values from a webcontrol to the hosting
placeholder?
i have a webcontrol (that opens the Hyperlink cms dialog) placed on a xml
placeholder. the idea is to get a url from the webcontrol and save it in the
xmlplaceholder.

any idea's.

P.s i'm using de sample code from stefan for the webcontrol.
http://blogs.technet.com/stefan_gos...2/07/41861.aspx


Stefan Goßner [MSFT]

2007-10-09, 7:24 am

Hi Mike,

the correct way to do this is to add the web control to the child controls
collection of the custom placeholder control assigned to the XmlPlaceholder
object.

Cheers,
Stefan


"Mike" <Mike@discussions.microsoft.com> wrote in message
news:463E1E9A-5FF2-43C0-98DE-610F1D3FAFB5@microsoft.com...
> hi,
> what is a best way to pass values from a webcontrol to the hosting
> placeholder?
> i have a webcontrol (that opens the Hyperlink cms dialog) placed on a xml
> placeholder. the idea is to get a url from the webcontrol and save it in
> the
> xmlplaceholder.
>
> any idea's.
>
> P.s i'm using de sample code from stefan for the webcontrol.
> http://blogs.technet.com/stefan_gos...2/07/41861.aspx
>
>



Mike

2007-10-09, 7:24 am

Hi,
i,ve done that.
but the problem is retriving the data from webcontrol. i have a hidden
fields in my webcontrol for saving the url from the cms dialog. and it works
fine.
but when i save the posting, how should i retrive the data im my
placeholder's SavePlaceholderContent Event. because the webcontrol placed on
the placeholder get created and i lose all of my data in the hidden fields.

Stefan Goßner [MSFT]

2007-10-09, 7:24 am

Hi Mike,

did you create the hidden fields using HtmlFields?
Then you should be able to retrieve the content using the property of the
field inside your SavePlaceholderContent method.

Cheers,
Stefan


"Mike" <Mike@discussions.microsoft.com> wrote in message
news:B737DC92-C12C-4E3A-A051-5A3F1B8BBACD@microsoft.com...
> Hi,
> i,ve done that.
> but the problem is retriving the data from webcontrol. i have a hidden
> fields in my webcontrol for saving the url from the cms dialog. and it
> works
> fine.
> but when i save the posting, how should i retrive the data im my
> placeholder's SavePlaceholderContent Event. because the webcontrol placed
> on
> the placeholder get created and i lose all of my data in the hidden
> fields.
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com