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

How to break line in Label control

Hi,
I would like to use <BR> in label control to break the line, but the control
converts "<" and ">" to entity. How can i break the line??

Jack
Nov 18 '05 #1
4 2216
> Hi,
I would like to use <BR> in label control to break the line, but the control converts "<" and ">" to entity. How can i break the line??


and this is simple example (i would like to break line in Text property of
label control):

Label1.Text = "Line1<BR>Line2";

It doesn't works... any ideas?

Jack
Nov 18 '05 #2
> > I would like to use <BR> in label control to break the line, but the
control converts "<" and ">" to entity. How can i break the line??

Try changing the labels width to see if it will wrap text for you. If that
doesn't work, use two different label controls.or another type of control
that does wrap or process line breaks.

It seems to me you want something that was never meant to be. Like I once
tried for about an hour to include carriage returns in the text part of an
XML element... The name element does make sense.
Nov 18 '05 #3
Jacek Stepniewski wrote:
Hi,
I would like to use <BR> in label control to break the line, but the


control
converts "<" and ">" to entity. How can i break the line??

and this is simple example (i would like to break line in Text property of
label control):

Label1.Text = "Line1<BR>Line2";

It doesn't works... any ideas?

Jack


It works just fine for me - could you post a very small complete example
that reproduces your problem.

--
mikeb

Nov 18 '05 #4
Jacek Stepniewski wrote:
Hi,
I would like to use <BR> in label control to break the line, but the


control
converts "<" and ">" to entity. How can i break the line??

and this is simple example (i would like to break line in Text property of
label control):

Label1.Text = "Line1<BR>Line2";

It doesn't works... any ideas?

Jack


It works just fine for me - could you post a very small complete example
that reproduces your problem.

--
mikeb

Nov 18 '05 #5

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

Similar topics

5
by: Kathryn | last post by:
Good morning! I am having a problem with a span. I have items, of which I only want to show the first X characters on the screen. If the user prints the page, I want the entire item to print....
5
by: viza | last post by:
Hi! Suppose I have int i,j,k; for(i=0;i<I;++i){ /* loop 1 */ for(j=0;j<J;++j){ /* loop 2 */ for(k=0;k<K;++k){ /* loop 3 */ if(test){
25
by: chunhui_true | last post by:
In <<expert c>>I know the break in if wich is scoped in switch is break the switch,like: switch c case 1: if(b){ break; } ...... But like this: while(a){
3
by: michael | last post by:
On my ASP.NET pages, it seems that _after_ any web or user control - an extra (small) line break or space is inserted automatically right after the Control. This is unwanted since it messes up...
4
by: Grey | last post by:
how to set the line break character in the Text properties of Label??
2
by: Jacek Stepniewski | last post by:
Hi, I would like to use <BR> in label control to break the line, but the control converts "<" and ">" to entity. How can i break the line?? Jack
2
by: Nathan Sokalski | last post by:
I have a form that is laid out like the following: ------------ | | LABEL CONTROL | IMAGE | | | _________ I want the Label control to be on multiple lines...
2
by: Mardy | last post by:
Hello In my asp.net application, I'm trying to write a multi-line message to a label server control after a db insert. I'd like to force a line break at a particular point but I can't seem to...
5
by: jdp | last post by:
I've created a user control that I then place in a panel. The reason it's in a panel is that it's part of search criteria that I hide/show panels based on the type of search begin done. I can...
2
by: jobs at webdos | last post by:
I have data that looks like this prodid fileid date where prodid repeats I want report like this prodid - fileid date
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: 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?
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
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
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
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,...

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.