HighTechTalks DotNet Forums  

Re: Labels - text wraps at runtime

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Re: Labels - text wraps at runtime in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Alexey Smirnov
 
Posts: n/a

Default Re: Labels - text wraps at runtime - 12-12-2007 , 03:45 PM






On Dec 12, 2007 8:54 PM, bpd wrote:
Quote:
On Mar 14, 9:40 pm, "bpd" wrote:

The text in my labels are now wrapping at runtime when they were not
previously. In design mode, the text display fines. Did I
accidentally change a setting? I implemented AJAX (appeared to be
working fine on separate, new controls) and then I noticed the
wrapping. I removed the AJAX but they are still wrapping. Please
advise.
Thanks.

Add a style for your label

for example:

{white-space: nowrap}

or check the layout of the page (maybe another control beside broke it)

Thank you. That keeps the text from wrapping. I would like to find
the root cause to why it started wrapping in the first place.

Bryan, you should provide a code of your page, or a part of it,
otherwise nobody will answer your question.


Reply With Quote
  #2  
Old   
bpd
 
Posts: n/a

Default Re: Labels - text wraps at runtime - 12-13-2007 , 11:23 AM






On Dec 12, 3:45 pm, Alexey Smirnov <alexey.smir... (AT) gmail (DOT) com> wrote:
Quote:
On Dec 12, 2007 8:54 PM,bpdwrote:





On Mar 14, 9:40 pm, "bpd" wrote:

The text in my labels are now wrapping at runtime when they were not
previously. In design mode, the text display fines. Did I
accidentally change a setting? I implemented AJAX (appeared to be
working fine on separate, new controls) and then I noticed the
wrapping. I removed the AJAX but they are still wrapping. Please
advise.
Thanks.

Add a style for your label

for example:

{white-space: nowrap}

or check the layout of the page (maybe another control beside broke it)

Thank you. That keeps the text from wrapping. I would like to find
the root cause to why it started wrapping in the first place.

Bryan, you should provide a code of your page, or a part of it,
otherwise nobody will answer your question.- Hide quoted text -

- Show quoted text -
It is every single page in this project. No other projects are like
this. I have compared the code of a couple of pages to a saved
versions prior to adding/removing AJAX and it is the same (the text in
the label controls did not wrap in the saved version). A setting,
reference, or something has caused the problem. Thanks for your help.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.