How to wrap label text in asp.net

{0 Comments}

When there is lots chuck of text assign to label in asp.net. It just scattered. To wrap it, you can set following property to get desired result. Following are the important property.

  1. Width
  2. Word-wrap
  3. Word-break
  4. display

This will definitely help you to get word wrap for label in asp.net. label in asp.net converted to span by asp.net engine, so have a look on below image;

 HTML |  copy code |? 
1
<asp:Label ID="Label1" Width="313px" Style="word-break: break-all;" runat="server"
2
            Text=""></asp:Label>

Leave a Comment

Your email address will not be published.