Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a label control in asp.net
i want inser a text on the my label
but this text is very long
and i want insert this text in multi line on the my label control
plz hlp me
give me a code c# for insert new line
Posted
Updated 11-May-12 8:47am
v2
Comments
Sergey Alexandrovich Kryukov 11-May-12 14:47pm    
The tag "ASP" removed: ASP.NET is not ASP.
--SA

1 solution

Label is an inline element and hence setting width or height would not work. Trick would be to use a TextBox instead and make it look like a label for the end user.

Here, read this tip: Wrapping Text Line in a label control [^]
 
Share this answer
 
Comments
Monjurul Habib 11-May-12 18:04pm    
5!
Sandeep Mewara 12-May-12 5:40am    
Thanks Monjurul. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900