I have a basic question:
I am getting text data from a database and want to display in a label (x width, don’t know if width is important but I guess it is) upto 5 lines of text (if in database the data is less then 5 lines all will be displayed).
Need to work with all borwsers.
Thanks for any help.
I don’t think you can do that. It’s like asking how long is a piece of string….. how long is 5 lines of text?
Now if you were to say something like 100 characters then you could get the Substring(0, 100) before assigning it to the label since I don’t believe there is a way to specify the max length of the text of a label.