Simple Question on appropriate control???

G

Guest

Hi,

I'm reasently new to ASP.NET and was wondering what the most appropriate control if any would be best for showing HTML code pulled from a database in a page! I have thought about using a label and also datagrid but I wasn't sure if you could put html code into a datagrid so it just shows up as text???

I would be grateful for any advice or suggestions people may have!

Thanks...
 
T

Teemu Keiski

Literal in System.Web.UI.WebControls namespace is one alternative.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke



Tim::.. said:
Hi,

I'm reasently new to ASP.NET and was wondering what the most appropriate
control if any would be best for showing HTML code pulled from a database in
a page! I have thought about using a label and also datagrid but I wasn't
sure if you could put html code into a datagrid so it just shows up as
text???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top