Microsoft Content Management Server - Flash Placeholder

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > August 2006 > Flash 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 Flash Placeholder
Paul Smith

2006-08-24, 7:21 pm

I'm trying to create a custom flash placeholder like the one described in
Stefan's first book and discussed here:
http://blogs.technet.com/stefan_gos.../02/106095.aspx

I'm getting the following error:
Error 4 Cannot switch views: Content is not allowed between the opening and
closing tags for element 'SingleAttachmentPlaceholderControl'.

I'm using Visual Studio 2005, ASP.NET 2.0, MCMS 2002. Thanks for any help.
Stefan [MSFT]

2006-08-25, 7:26 am

Hi Paul,

the flash control should be a FlashPlaceholderControl and not a
SingleAttachmentPlaceholderControl. Sounds to me as if you have either as
well a SingleAttachmentPlaceholderControl and the FlashPlaceholderControl on
the page.
Please double check in source view.
Also check that there are no elements within the
SingleAttachmentPlaceholderControl.

The error message does not say anything about a FlashPlaceholderControl - so
it seems not to be related to the flash control.

Btw: I verified the flash placeholder control with ASP.NET 2.0 and it works
fine.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights


"Paul Smith" <PaulSmith@discussions.microsoft.com> wrote in message
news:3FE2A92F-03EB-4B85-8665-E260022B2B75@microsoft.com...
> I'm trying to create a custom flash placeholder like the one described in
> Stefan's first book and discussed here:
> http://blogs.technet.com/stefan_gos.../02/106095.aspx
>
> I'm getting the following error:
> Error 4 Cannot switch views: Content is not allowed between the opening
> and
> closing tags for element 'SingleAttachmentPlaceholderControl'.
>
> I'm using Visual Studio 2005, ASP.NET 2.0, MCMS 2002. Thanks for any help.



Paul Smith

2006-08-25, 1:20 pm

Here's what I copy and pasted out of the source code from the book's
publisher's website:

<cms:SingleAttachmentPlaceholderControl id="FlashPH" runat="server"
PlaceholderToBind="Flash">
<PresentationTemplate>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="200" height="200" id="MyFlash" align="middle" VIEWASTEXT>
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="<%# Container.AttachmentUrl %>" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="<%# Container.AttachmentUrl %>" quality="high"
bgcolor="#ffffff" width="200" height="200" name="MyFlash" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</PresentationTemplate>
</cms:SingleAttachmentPlaceholderControl>

I've set up the template according to the instructions in the book. I must
be missing something, but I can't imagine what it is.

Thanks for the assistance.

"Stefan [MSFT]" wrote:

> Hi Paul,
>
> the flash control should be a FlashPlaceholderControl and not a
> SingleAttachmentPlaceholderControl. Sounds to me as if you have either as
> well a SingleAttachmentPlaceholderControl and the FlashPlaceholderControl on
> the page.
> Please double check in source view.
> Also check that there are no elements within the
> SingleAttachmentPlaceholderControl.
>
> The error message does not say anything about a FlashPlaceholderControl - so
> it seems not to be related to the flash control.
>
> Btw: I verified the flash placeholder control with ASP.NET 2.0 and it works
> fine.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
>
> "Paul Smith" <PaulSmith@discussions.microsoft.com> wrote in message
> news:3FE2A92F-03EB-4B85-8665-E260022B2B75@microsoft.com...
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com