Microsoft Content Management Server - CMS Templates associated with web controls

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > June 2004 > CMS Templates associated with web controls





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 CMS Templates associated with web controls
Gus

2004-06-20, 11:04 pm

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
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



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com