DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sun, 5 Aug 2007 20:37:34 +0100,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Ganesh
          2    Sergey Poberezovskiy


label displays in 2 lines   
Hi There,

I use formview control, i placed a label called phone no in the table 
column.  The cell got enought space to hold all value of phone no. But what 
happens if ther is any space in the phone number it splitted into 2. i cant 
figure out this problem.  is it bug in the vs.net 2005 and sql server

Thanks
Ganesh
Date:Sun, 5 Aug 2007 20:37:34 +0100   Author:  

RE: label displays in 2 lines   
create a style called nobr:
<style>
 .nobr{word-spacing:nowrap;}
</style>

and then set your Label CssClass to it:

myLabel.CssClass = "nobr";

"Ganesh" wrote:


> Hi There,
> 
> I use formview control, i placed a label called phone no in the table 
> column.  The cell got enought space to hold all value of phone no. But what 
> happens if ther is any space in the phone number it splitted into 2. i cant 
> figure out this problem.  is it bug in the vs.net 2005 and sql server
> 
> Thanks
> Ganesh 
> 
> 
> 
Date:Sun, 5 Aug 2007 20:58:00 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us