Insert HTML inside <asp:panel> control in ASP.NET 2.0

I have a string of HTML (<u><i>hello</i></u>) that I would like to be able to insert inside <asp:panel></asp:panel>  is there way to do this programatically (from VB).
Also, the 2.0 framwork has classes such as HTMLAnchor, HTMLButton, etc... is there a anything that would let me access the HTML <div> tag and it's innerHTML.  That way, I don't have to use <asp:panel>.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

if you store all that HTML to a string, you could set the text of an asp:Label to that string and it should render out your HTML.
ChaffeAuthor Commented:
craskin, I thoguht about that too, but I'd rather store it in a <div> instead of <span> so I can have a little more flexibility.  Any thoughts?
Jason ScolaroCommented:
Hi Chaffe,

Panel1.Controls.Add(New LiteralControl("<u><i>hello</i></u>"))

I'd stick with the <asp:Panel>, it's just the server control version of a <div>.  It should satisfy your needs.  Good luck!

-- Jason

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

ChaffeAuthor Commented:
Jason, this works.  But do you think I could be facing performance issues if I start doing this with big chunks of html strings?
Jason ScolaroCommented:

I don't think you would have any sort of performance issues versus any other option.  What is it that is being output in these big chucks of html strings?  The performance issue you'd probably need to concern yourself with is simply how much data is being sent to the browser... if the HTML string gets insanely large, then it would take a while for the browser to download it... but other than that.. you should be fine.

-- Jason
ChaffeAuthor Commented:
Makes sense.  Thanks a lot for all of your help.  I see you're the featured Expert now.  You certainly deserve it Jason.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.