473,407 Members | 2,312 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,407 software developers and data experts.

asp Lable does not wrap at new line.

Hi
I am showing a text paragraph in a labe control.

But, the label control is ignoring my "newLines".... (newline+carraige
return)
( I correct this paragraph using a multiline textBox)

how do I get the label to go to a new line at line breaks?
Thanks
Nalaka
Dec 5 '05 #1
8 3481
Use <br> instead. Remember, the contents of the label are entirely
interpreted by the browser which ignores whitespace.

"Nalaka" <na******@nospam.nospam> wrote in message
news:OV****************@TK2MSFTNGP11.phx.gbl...
Hi
I am showing a text paragraph in a labe control.

But, the label control is ignoring my "newLines".... (newline+carraige
return)
( I correct this paragraph using a multiline textBox)

how do I get the label to go to a new line at line breaks?
Thanks
Nalaka

Dec 5 '05 #2
Hi,
This is not possible.

"Nalaka" wrote:
Hi
I am showing a text paragraph in a labe control.

But, the label control is ignoring my "newLines".... (newline+carraige
return)
( I correct this paragraph using a multiline textBox)

how do I get the label to go to a new line at line breaks?
Thanks
Nalaka

Dec 5 '05 #3
thanks... this worked...
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:uJ****************@TK2MSFTNGP09.phx.gbl...
Use <br> instead. Remember, the contents of the label are entirely
interpreted by the browser which ignores whitespace.

"Nalaka" <na******@nospam.nospam> wrote in message
news:OV****************@TK2MSFTNGP11.phx.gbl...
Hi
I am showing a text paragraph in a labe control.

But, the label control is ignoring my "newLines".... (newline+carraige
return)
( I correct this paragraph using a multiline textBox)

how do I get the label to go to a new line at line breaks?
Thanks
Nalaka


Dec 5 '05 #4
For the record <br> (and <br/>) are depreated. Their use should never
be considered. Don't expect application taht use that to work in 5
years.

Dec 6 '05 #5
You can't think of pages having "line breaks", you rather you need to
think of the line in it's full context. Is it a statement of some
sort? Statements go into paragraphics... ergo...

<p><asp:Label id="lblMyStuff" runat="server="></asp:Label></p>

<br> is deprecated as is <font>, table hacks, frame hacks, iframe
hacks, the style attribute and many other things.

Dec 6 '05 #6
Boy, aren't you the optimist. I believe that the reality will be that these
will never go away as long as HTML is used. The reason is that there are
too many sites that depend on these tags and hacks and so if a browser was
suddenly released such that proper standards were enforced, it would
probably break about 60% of the sites out there resulting in people not
wanting to use the browser.

<ag******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
You can't think of pages having "line breaks", you rather you need to
think of the line in it's full context. Is it a statement of some
sort? Statements go into paragraphics... ergo...

<p><asp:Label id="lblMyStuff" runat="server="></asp:Label></p>

<br> is deprecated as is <font>, table hacks, frame hacks, iframe
hacks, the style attribute and many other things.

Dec 6 '05 #7
Hi,
well, what I have is a multline textbox that user enters a comment.
In a text box user have the ability to hit "enter" and go to the new line.

So... when I show the comment, later, on a separate page...
I need to show in the same format as the user entered.. with line breaks.
if not the output looks ugly (not what the writer intended).

That is why I was looking for a way to duplicate the texBox effect on the
label.

Nalaka

<ag******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
You can't think of pages having "line breaks", you rather you need to
think of the line in it's full context. Is it a statement of some
sort? Statements go into paragraphics... ergo...

<p><asp:Label id="lblMyStuff" runat="server="></asp:Label></p>

<br> is deprecated as is <font>, table hacks, frame hacks, iframe
hacks, the style attribute and many other things.

Dec 6 '05 #8
you could also use the <pre> tag

Dec 6 '05 #9

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

Similar topics

4
by: Lukelrc | last post by:
Hi, I have a listfield that displays a list of 'Themes' stored in a database. The listfield's lable is Themenames and it's value is UniqueThemeID. The page that i'm designing allows the user to...
3
by: JHR | last post by:
Hey all, I'm trying to make a sidebar box float to the right of various items, and for those items to wrap if a user shrinks his browser window. Instead, in every browser I've tried except for...
11
by: name | last post by:
Here is a first attempt at a line/word wrapping utility. Seems to work okay, but lacks some checking stuff, etc. --------------------------------------------------------- #include <stdio.h>...
8
by: name | last post by:
Back again for more critique... <grin> ------------------------------------------------ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #define MAX 10000
8
by: Mark D. Smith | last post by:
Hi I have googled but not found a solution to wordwrap in a textarea using firefox/netscape. is there a style sheet solution or am i stuck with not being able to force wrapping in a textarea...
7
by: Bo Yang | last post by:
Hi , I am reading some boost code now , and I got confused by the following code in the add_reference type trait . template <class TT&(* is_reference_helper1(wrap<T>) )(wrap<T>); char...
5
by: iKiLL | last post by:
Hi All, I am trying to Bulid Windows Mobile Forms Control with C# in VS2005 using CF2. On this control A lable is created and some text set for the control. My problem is that i dont know how...
1
by: CFFAN | last post by:
<h3>Wrap Example</h3> <cfset inputText1="Inserts line break at the location of the first white space character (such as a space, tab, or new line) before the specified limit on a line. If a line has...
2
by: ravindarjobs | last post by:
Hi friends i want to generate UPS label from my asp.net C# code. i have UPS account, online tools information with me. but dont know where to start to develop. can any one plz give a link that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.