473,614 Members | 2,101 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2233
> 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
29535
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. Thanks to Els, I have a way to do this, see below, directly from the View Source: This is a long piece of text. This is a long piece of text. This
5
33702
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
3903
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
3975
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 vertical alignment preventing me of having things "touch" each other. I have tried surrounding the controls in a DIV tag with padding set to 0 but this still does not help. What must I do to prevent this line-break or space to happen after a...
4
41675
by: Grey | last post by:
how to set the line break character in the Text properties of Label??
2
609
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
2329
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 (I know exactly how many and where the breaks will be) but stay contained in a rectangle. If I put BR
2
10098
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 find the magic words. Please help
5
1254
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 place a label next to this control in the IDE and it looks fine but when I run the app, the label is on the line above the control. I've tried placing the label INSIDE the control, placing the user control inside a <div> and allowing objects on...
2
3239
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
8176
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8120
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8620
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8265
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5537
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4048
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2560
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1705
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1420
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.