I have a web page that has a placeholder on it called PlaceHolderText. I
read some html out of the database. The value for my test is:
this is <strong>a test </strongof the html stuff
I read that into a variable that I call htmlData (it's a string)
htmlData = reader["html"].ToString();
Then, after making sure that htmlData is good and all, I do the following
two lines:
HtmlGenericControl ctl = new HtmlGenericControl(@htmlData);
PlaceHolderText.Controls.Add(ctl);
That outta show the data, with the appropriate words bolded. Instead it
shows the following (nothing bolded).
a test of the html stuff>a test of the html stuff>
Going through the debugger the value of htmlData is exactly what I expect it
to be. It gets muddied up by the htmlgenericcontrol
Anybody got a clue for me? Just a hint?
--
----------------------------------------
Magic is not in the hands of the magician but in the mind of the audience.
Animadverto est verus