all groups > dotnet windows forms > april 2005 >
You're in the

dotnet windows forms

group:

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



Re: Better way than Label to use function to replace text in web page? Steve C. Orr [MVP, MCSD]
4/30/2005 4:38:42 PM
dotnet windows forms: You could use a TextBox with its Multiline property set to true.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


[quoted text, click to view]

Better way than Label to use function to replace text in web page? Kent P. Iler
4/30/2005 7:12:37 PM
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
----------------------------------------------------------------------
kent@iler.NOSPAM.com
Please CC: all replies via e-mail
Remove .NOSPAM from e-mail address

Re: Better way than Label to use function to replace text in web page? kentiler
5/2/2005 6:23:45 PM
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
AddThis Social Bookmark Button