Microsoft Content Management Server - Creating HTML Placeholder through PAPI

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > December 2004 > Creating HTML Placeholder through PAPI





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 Creating HTML Placeholder through PAPI
Varad

2004-12-29, 8:46 pm

I have a template in .net with a text area html control. I get the data from
the text area control and have to instantiate the cms html control, set its
properties, id, name, placeholder to bind etc in the codebehind page. I'm
doing this to create an UI which is same as the one that is used although on
a different CMS product.
This is the code I'm using:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim htmlPh As New
Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl

htmlPh.ID = "htmlPhTest1"
htmlPh.Width.Pixel(50)
htmlPh.Height.Pixel(100)
htmlPh.Html = "Hello there!!"
htmlPh.PlaceholderToBind = "myHtmlPh"
htmlPh.AllowHtmlSourceEditing = True
postingHeading.Text = htmlPh.ClientID()

After I save the html control and its data, when I try to edit the page, the
html text doesnt appear in an html control. Why is that? What am I doing
wrong here?
To summarize: I'm trying to get a text from an .Net web control and assign
it to a cms html place holder control. I'm havin gproblems when I try to edit
the posting.

THanks for your help.

V
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com