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 = "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMM"
|