Line wrap - WebForm Label

A

Andy Mortimer [MS]

As far as I'm aware, if you specify a width for the label, the text wraps
by default.

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
 
G

Guest

I set the width but do not get line wrapping (see below). Can you see what I'm doing wrong?

WebFprm1.aspx

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



WebForm1.aspx.cs

Label2.Text = "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM";
 
A

Andy Mortimer [MS]

Perhaps I'm missing something here. Wordwrap is exactly that, it wraps
words. If you put in one great big long word it can hardly wrap it?

If you break up your sentence into words can you see it wrapping?

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top