|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TableCell Text Wrapping Problem!wraps at spaces. E.g. Label lb = new Label(); lb.Text = "Hello, World!" TableCell cell = new TableCell(); cell.Controls.Add(lb); The resulting TableCell html render will look like this _______ | Hello, | However if I don't have spaces in my lb.Text, "Hello,World!", the resulting | World! | |_______| TableCell html render will look like ___________ | Hello,World! | with "World!" written on new line. How can I disable this line wrapping for |___________| Text which contains spaces? Thank you, -Amelyan
Show quote
Hide quote
"Amelyan" <bamel***@wi.rr.com> wrote in message on the cell, add the nowrap attribute :)news:%234HLWxJXFHA.3464@TK2MSFTNGP10.phx.gbl... > If I have spaces in my Text property of Label, and I add it to TableCell, > it wraps at spaces. E.g. > > Label lb = new Label(); > lb.Text = "Hello, World!" > TableCell cell = new TableCell(); > cell.Controls.Add(lb); > > > The resulting TableCell html render will look like this > _______ > | Hello, | > | World! | > |_______| > > However if I don't have spaces in my lb.Text, "Hello,World!", the > resulting TableCell html render will look like > ___________ > | Hello,World! | > |___________| > > with "World!" written on new line. How can I disable this line wrapping > for Text which contains spaces? > > Thank you, > -Amelyan > Mythran Works! Thanks a lot,
Amelyan Show quoteHide quote "Mythran" <kip_potter@hotmail.comREMOVETRAIL> wrote in message news:eyaNL3KXFHA.1508@tk2msftngp13.phx.gbl... > > "Amelyan" <bamel***@wi.rr.com> wrote in message > news:%234HLWxJXFHA.3464@TK2MSFTNGP10.phx.gbl... >> If I have spaces in my Text property of Label, and I add it to TableCell, >> it wraps at spaces. E.g. >> >> Label lb = new Label(); >> lb.Text = "Hello, World!" >> TableCell cell = new TableCell(); >> cell.Controls.Add(lb); >> >> >> The resulting TableCell html render will look like this >> _______ >> | Hello, | >> | World! | >> |_______| >> >> However if I don't have spaces in my lb.Text, "Hello,World!", the >> resulting TableCell html render will look like >> ___________ >> | Hello,World! | >> |___________| >> >> with "World!" written on new line. How can I disable this line wrapping >> for Text which contains spaces? >> >> Thank you, >> -Amelyan >> > > on the cell, add the nowrap attribute :) > > Mythran >
How to react to an ImageButon in a DataList ?
Can we have more than 1 'control to validate' for a single validat Detailsview empty dataset insert search criteria web forms textbox sizing issues in Firefox About Page Newbie to web side - prompt the user..... DataGrid help on Datagrid's SelectedIndexChanged event How to use Tab controls bind a Checkboxlist with a string ? |
|||||||||||||||||||||||