| Stefan [MSFT] 2004-09-15, 10:20 am |
| Hi Nikolaj,
this is normal usage and should work.
Check out the code sample here:
http://www.gotdotnet.com/community/...t+S
erver
There are several placeholder controls which use the same method.
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
--------------------------------
"Nikolaj" <Nikolaj@discussions.microsoft.com> wrote in message
news:DB791755-8D11-4447-A181-B4F2BB00642F@microsoft.com...
> I am extending the class BasePlaceholderControl to be able to provide the
> user with a faily complex user interface used for specifying some content.
> Here is an example of how I override CreateAuthoringChildControls():
> protected override void CreateAuthoringChildControls(BaseModeCon
tainer
> authoringContainer)
> {
> authoringContainer.Controls.Add(new DropDownList());
> }
>
> This works and in the authoring mode I can use the dropdown list. Instead
of
> this simple example I would like to design a web user control (ui.ascx for
> instance) and add it in the place of the dropdown list. The user control
> contains a complex ui. But I can't make it show up.
> Is the approach not possible. Do you have any suggestions or comments?
>
> (My goal is to be able to design an authoring userinterface visually and
> display it in the placeholder when it is in authoring mode. The ui should
> consist of an object which also contains a method used to extract the
> settings of the ui as an xml-string which is stored in the xml
placeholder.)
|