Putting html on a label

liqid

New Member
I am trying to place some html on a label via label.text = "<hr>"... on the code behind page. It seems to work ok except when I use the <b> tag. When I use it the label and the rest of the page are blank from the point of the tag. Anyone know why or how to get around it? I'm doing this because I have to change the value of a label after the page is loaded. Thanks for any help.Does it need to be a label? When using html I usually use a literal instead and have not had any problems with it.I'm not familiar with a literal, but it does not need to be a label, as long as I can put html into part of the page on an event instead of on the page load. What is a literal?Actually I just tried to use a literal and had the same issue.
 
Back
Top