Better way than Label to use function to replace text in web page?

  • Thread starter Thread starter Kent P. Iler
  • Start date Start date
K

Kent P. Iler

Hi,

I'm creating a website where I need to pull data from a database, and
display it on a page. This isn't a place where a repeater or datagrid makes
sense. I was using labels and setting the text equal to the values that I
needed to display. That works OK in most places, but in areas where there
are memo fields requiring multiple lines, a label doesn't cut it.

What would be the best thing to use instead of a label, and allow the
code-behind functions to set the value?

Thanks!

-- Kent Iler
 
I tried that but it didn't work with a label. Can the label have HTML
in it?

Thanks!

--Kent
 
But I don't know how long the text will be, and so I don't want to do a
fixed number of rows. I want something that will only be as large as
the text, but allow for a significant amount, too - such as 4000+
characters.

Thanks!

--Kent
 
Yes, Access is the data source in this case, but I'm pulling back the
data from Access and presenting it in a webform using ASP.NET.

--Kent
 
Of course -- the label just renderes as a <span> with the Text property inside.
Hmm... now that I've mentioned it, what does the spec say about that... Well,
my quick test shows that it's ok. If it doesn't work for you, you can always
use a LiteralControl with the <br> in side of it.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
Back
Top