Re: HtmlPlaceHolder,how to get the html from this controls when Pu
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Re: HtmlPlaceHolder,how to get the html from this controls when Pu




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: HtmlPlaceHolder,how to get the html from this controls when Pu  
Paulo Rosa


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-18-04 10:50 PM

Hi Stefan,

I got this error with your code

"Type 'HtmlPlaceholder' is not defined."

I tried:

Dim content As String = CType(DivPlaceHolder.BoundPlaceholder,
HtmlPlaceholderControl).Html

"Value of type 'Microsoft.ContentManagement.Publishing.Placeholder' cannot
be converted to
'Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl'."

Any idea

Thanks

"Stefan [MSFT]" wrote:

> Hi Paulo,
>
> as assumed.
> You are not dealing with placeholders but with placeholder controls.
> Please retrieve the actual placeholder object using the BouldPlaceholder
> property of the placeholder control.
>
> Means to get the placeholder use this code:
>
> Dim content As String = CType(DivPlaceHolder.BoundPlaceholder,
> HtmlPlaceholder).Html
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>
> MCMS FAQ:
> http://download.microsoft.com/downl...
a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
> http://www.gotdotnet.com/community/...nagement+Server
> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> "Paulo Rosa" <PauloRosa@discussions.microsoft.com> wrote in message
> news:5AE6E79A-F189-4D16-A421-26D8AB694D33@microsoft.com... 
> rights. 
> http://download.microsoft.com/downl...
a/MCMS+2002+-+(complete)+FAQ.htm 
> http://www.gotdotnet.com/community/...nagement+Server 
> http://download.microsoft.com/downl...
a/MCMS+2002+-+(complete)+FAQ.htm 
> http://www.gotdotnet.com/community/...nagement+Server 
> posted 
> retrieving 
> that 
> no 
> http://download.microsoft.com/downl...
a/MCMS+2002+-+(complete)+FAQ.htm 
> http://blogs.msdn.com/stefan_gossner/category/4983.aspx 
> http://www.gotdotnet.com/community/...nagement+Server 
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx 
> message 
> I 
> invisible, 
> use 
> the 
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:37 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register