Line wrapping with WebForm Label

G

Guest

I set the width of a WebForm Label but do not get line wrapping (see below). What can I do to get line wrapping

WebForm1.asp

<asp:Labe
id="Label1"
style="Z-INDEX: 101; LEFT: 40px; POSITION: absolute; TOP: 48px
runat="server" Width="150px" Height="64px"></asp:Label


WebForm1.aspx.c

Label1.Text = "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
 
G

Guest

Without a space, the label text won't wrap. You may need to resort to a subtstring in order insert a space that the control is able to use for wrapping

----- mg wrote: ----

I set the width of a WebForm Label but do not get line wrapping (see below). What can I do to get line wrapping

WebForm1.asp

<asp:Labe
id="Label1"
style="Z-INDEX: 101; LEFT: 40px; POSITION: absolute; TOP: 48px
runat="server" Width="150px" Height="64px"></asp:Label



WebForm1.aspx.c

Label1.Text = "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top