| Stefan [MSFT] 2004-06-20, 11:04 pm |
| Hi Gus,
it is possible but you need to associate the template file and not the
control with the template object.
Then you need to edit the ascx control and set the PlaceholderToBind
property of the placeholder controls manually.
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
--------------------------------
"Gus" <anonymous@discussions.microsoft.com> wrote in message
news:1ce2d01c452eb$088347b0$a001280a@phx
.gbl...
> I wish to create a control which contains several
> placeholders.
>
> I do not see how to do this or know if it is possible. If
> I associated a template with an ascx file I get the error:
> This type of page is not served.
> Description: The type of page you have requested is not
> served because it has been explicitly forbidden. The
> extension '.ascx' may be incorrect. Please review the URL
> below and make sure that it is spelled correctly.
>
> This suggests that a template can not be associated with
> an ascx file. Obviously if the ascx file is not associated
> with a template the placeholder controls will not have any
> placeholders to bind to.
>
> However it would be very useful to be able to create a
> control consisting of many placeholders.
>
> Thanks
|