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