473,396 Members | 1,813 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.

How to brake a label server control ?

Hi,

My aspx page has a label that is too long and Iīd to brake this in
multiline:

Now, its is working like this: hey itīs just an example
105 - There is an error here. Pay attention. Look this again.

And, I want something like this:
105 - There is an error here.
Pay attention.
Look this again.

tks
ed
Nov 17 '05 #1
3 1952
Hi,

You can use <br> tag inside your label test. Please try like this.
105 - There is an error here.<br> Pay attention.<br> Look this again.
--
Let me know if you need further help

Regards
Sreejumon[MVP]
DOTNET makes IT happen

"Edmilson" <tr****@padtec.com.br> wrote in message
news:eG**************@tk2msftngp13.phx.gbl...
Hi,

My aspx page has a label that is too long and Iīd to brake this in
multiline:

Now, its is working like this: hey itīs just an example
105 - There is an error here. Pay attention. Look this again.

And, I want something like this:
105 - There is an error here.
Pay attention.
Look this again.

tks
ed

Nov 17 '05 #2
how can I do this ?

Catch exc As SqlException

lblMessage.Text = "105 - There is an error here. " + exc.Number.ToString +
" - " + exc.Message.ToString

Finally

it doesnīt work...

"Sreejumon[MVP]" <sr********@hotmail.com> escreveu na mensagem
news:eY**************@tk2msftngp13.phx.gbl...
Hi,

You can use <br> tag inside your label test. Please try like this.
105 - There is an error here.<br> Pay attention.<br> Look this again.
--
Let me know if you need further help

Regards
Sreejumon[MVP]
DOTNET makes IT happen

"Edmilson" <tr****@padtec.com.br> wrote in message
news:eG**************@tk2msftngp13.phx.gbl...
Hi,

My aspx page has a label that is too long and Iīd to brake this in
multiline:

Now, its is working like this: hey itīs just an example
105 - There is an error here. Pay attention. Look this again.

And, I want something like this:
105 - There is an error here.
Pay attention.
Look this again.

tks
ed


Nov 17 '05 #3
uh, how about <BR> :-)

or put it in a table with a fixed width, and allow wrap.
"Edmilson" <tr****@padtec.com.br> wrote in message
news:eG**************@tk2msftngp13.phx.gbl...
Hi,

My aspx page has a label that is too long and Iīd to brake this in
multiline:

Now, its is working like this: hey itīs just an example
105 - There is an error here. Pay attention. Look this again.

And, I want something like this:
105 - There is an error here.
Pay attention.
Look this again.

tks
ed

Nov 17 '05 #4

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

Similar topics

7
by: Mike Casey | last post by:
Hello all, I have ASP.NET label controls tied to a datasource (so text will vary in length depending on the record). In IE everything looks great--text is wrapped if needed. In Netscape and...
6
by: Tom Kaminski [MVP] | last post by:
On my code behind page, how can I reference a Label control that's included in a Repeater? In other words, given: <asp:Repeater id="Repeater1" runat="server"> <HeaderTemplate> <table> <tr>...
3
by: Patrick.O.Ige | last post by:
I created a USERCONTROL and i want to call a LABEL from an ASPX page. The USERCONTROL is in the ASPX page I have the label :- Label lblstr = new Label(); And displaying using:-...
6
by: Joe | last post by:
I know that the Literal control will not render a <span> tag so I can not format its text. Other than this, what is the difference betwen the Literal control and the LiteralControl Control? How...
8
by: Arpan | last post by:
Consider the following code snippet (my main intention is to display the current time in a Label control as & when this ASPX page is accessed/refreshed): <script runat="server"> Class Clock...
2
by: rn5a | last post by:
Consider the following code: <script runat="server"> Sub ShowData(obj As Object, ea As EventArgs) lblDate.Text = DateTime.Now.ToString("d") lblDate.DataBind() End Sub </script> <form...
5
by: BobLaughland | last post by:
Hi There, I am trying to get some fields to align on a web page, like this, To: From: Subject: Each of the fields above have a corresponding asp:Textbox control next to it that I cannot...
2
by: Andy B | last post by:
I have the following listView control on a page: <asp:ListView ID="ListView1" runat="server" ItemPlaceholderID="PlaceHolder1"> <ItemTemplate> <dl> <dt>
1
by: sivasrec | last post by:
Hi, This is sivakumar from India. Now I am learning to ASP.NET 2.0.. I have a doubt.... I have used in a one hidden field control, 2 label controls, 2 button controls and...
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.