J
J-T
I am constructing an HTML text which I need to render in my ASP.NET page.
string rssOutput = Posts.listPosts(Constants.WeblogSectionID);
rssOutput contains html code and text.Then I create a literal control as
follow:
LiteralControl lit = new LiteralControl(rssOutput);
lit.Text = lit.Text.Replace("<","<");
lit.Text = lit.Text.Replace(">",">");
lit.Text = lit.Text.Replace("&","&");
and I add that control to a place holder called "phOutput".
this.phOutput.Controls.Add(lit);
I have no problem rendering the HTML inside the place holder and it works
fine,my only problem is I don;t know how to control the width of my place
holder.It seems that I cannot increase it programmatically or at design
time.
Any suggestions?
Thanks
string rssOutput = Posts.listPosts(Constants.WeblogSectionID);
rssOutput contains html code and text.Then I create a literal control as
follow:
LiteralControl lit = new LiteralControl(rssOutput);
lit.Text = lit.Text.Replace("<","<");
lit.Text = lit.Text.Replace(">",">");
lit.Text = lit.Text.Replace("&","&");
and I add that control to a place holder called "phOutput".
this.phOutput.Controls.Add(lit);
I have no problem rendering the HTML inside the place holder and it works
fine,my only problem is I don;t know how to control the width of my place
holder.It seems that I cannot increase it programmatically or at design
time.
Any suggestions?
Thanks