| Stefan [MSFT] 2004-10-18, 5:50 pm |
| 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...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
--------------------------------
"Paulo Rosa" <PauloRosa@discussions.microsoft.com> wrote in message
news:5AE6E79A-F189-4D16-A421-26D8AB694D33@microsoft.com...[vbcol=seagreen]
> Public class xxxxxxxxxxxxxxxxxxxxx
> Protected WithEvents DeptPlaceHolder As
> Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl
> Protected WithEvents DivPlaceHolder As
> Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl
> -------------------------
>
> Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles Button1.Click
> FillHolders()
> End Sub
>
> --------------------------
>
> Private Sub FillHolders()
> DivPlaceHolder.Html = DivList.SelectedValue.ToString
> DeptPlaceHolder.Html = DeptList.SelectedValue.ToString
> End Sub
>
> --------------------------
>
> Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles Button2.Click
> Label1.Text = DivPlaceHolder.Html.ToString
> Label2.Text = DeptPlaceHolder.Html.ToString
>
> 'Dim util As System.Web.HttpUtility
> 'Label1.Text = HttpUtility.HtmlDecode(DivPlaceHolder.Html)
> 'Label2.Text = HttpUtility.HtmlDecode(DeptPlaceHolder.Html)
> End Sub
>
> Thanks
>
> Paulo Rosa
>
> "Stefan [MSFT]" wrote:
>
rights.[vbcol=seagreen]
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm[vbcol=seagreen]
http://www.gotdotnet.com/community/...t+S
erver[vbcol=seagreen]
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm[vbcol=seagreen]
http://www.gotdotnet.com/community/...t+S
erver[vbcol=seagreen]
posted[vbcol=seagreen]
retrieving[vbcol=seagreen]
that[vbcol=seagreen]
no[vbcol=seagreen]
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm[vbcol=seagreen]
http://blogs.msdn.com/stefan_gossner/category/4983.aspx[vbcol=seagreen]
http://www.gotdotnet.com/community/...t+S
erver[vbcol=seagreen]
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx[vbcol=seagreen]
message[vbcol=seagreen]
I[vbcol=seagreen]
invisible,[vbcol=seagreen]
use[vbcol=seagreen]
the[vbcol=seagreen]
|