473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Label wrap

i have text in a access database that is input from a multiline textbox.

now i want to display this text in a Label but then im not able to get det
correct format with linewrapping. i do wraps at control widht end..but i
becomes pretty unreadable couse there is several wraps in the text.

if i reads the text into a multiline textbox it seems to work

but it is not that nice output...
anyone has some good input, guess this is a newbie question
maybe i should use another control and not the label control
Nov 19 '05 #1
2 1367
someLabel.Text = someValue.Replace(System.Environment.NewLine, "<br />")

perhaps?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Lelle" <sv****@hotmail.com> wrote in message
news:42********@news.wineasy.se...
i have text in a access database that is input from a multiline textbox.

now i want to display this text in a Label but then im not able to get det
correct format with linewrapping. i do wraps at control widht end..but i
becomes pretty unreadable couse there is several wraps in the text.

if i reads the text into a multiline textbox it seems to work

but it is not that nice output...
anyone has some good input, guess this is a newbie question
maybe i should use another control and not the label control

Nov 19 '05 #2
thanx alot karl ...works just fine

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl...
someLabel.Text = someValue.Replace(System.Environment.NewLine, "<br />")

perhaps?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Lelle" <sv****@hotmail.com> wrote in message
news:42********@news.wineasy.se...
i have text in a access database that is input from a multiline textbox.

now i want to display this text in a Label but then im not able to get
det
correct format with linewrapping. i do wraps at control widht end..but i
becomes pretty unreadable couse there is several wraps in the text.

if i reads the text into a multiline textbox it seems to work

but it is not that nice output...
anyone has some good input, guess this is a newbie question
maybe i should use another control and not the label control


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Harvey | last post by:
Hello: I am trying to use Autosize=true on a long string and it extends off of my form, rather than increasing the number of lines of the Label as the documentation says it should do. Would...
3
by: TR | last post by:
Is it possible with CSS to prevent this wrapping alignment with a checkbox with a nested label? This is the label of the checkbox that wraps beneath it I'd prefer it looked like...
4
by: Richard MSL | last post by:
I have an application using WinForms under C#. I do not use the IDE, I use the command line compiler, I build my controls in my application code. The application generally works fine, except for...
1
by: Ray Cacciatore | last post by:
I'm using an asp:label to display source code on my web page. The source code is formatted with carriage returns, tabs and spaces. In the past, all I had to do was wrap the label in a <pre> element...
2
by: David | last post by:
Hello. I have a Label control on my web form and I have long text in it. What I want is to disable text wrapping of this Label. Is it possible? Also I want to know how can I set text...
4
by: Randy | last post by:
Hello, I don't see a wrap property for the ASP version of Label. Is there anyway this control can be set to not wrap? Thanks
1
by: jack-e | last post by:
Hi, An easy on I'm guessing! How do I restrict the length of a label? I have tried setting the width to say 200px but if the user inputs a continuous line of characters it's doesn't wrap. ...
1
by: ngreplies | last post by:
I am using a label as a tooltip box because I need to be able to change the background of the box depending on the information it is representing. That aside, I need to be able to auto-size the...
1
by: Keithb | last post by:
I have a GridView control with two item template columns, each containing a label control. One of the label controls wraps on long text strings, increasing the height of the row. The other one does...
1
by: Nikola Skoric | last post by:
Is there a way to make a label wrap its content? -- "Now the storm has passed over me I'm left to drift on a dead calm sea And watch her forever through the cracks in the beams Nailed across...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.