473,396 Members | 1,777 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 formatting

Can the text property be set inside the html using the String.Format()
method? If not, is there some other means of setting the format for a label
statically (not in code)?

Thanks in advance,

Mervin Williams
Nov 18 '05 #1
3 4968
Mervin,

Sounds like your talking about Style, not Format. Formatting (as in
String.Format) is used to manipulate strings based on a format string. If
you are infact talking about Formating, then you will always need to use
String.Format against your label text, since String.Format will take more
arguments than just a base string.

-- Alex Papadimoulis
"Mervin Williams" <mw*******@innovasolutions.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Can the text property be set inside the html using the String.Format()
method? If not, is there some other means of setting the format for a label statically (not in code)?

Thanks in advance,

Mervin Williams

Nov 18 '05 #2
I would like to set the label text property to the value of a textbox
control's text value, within the html itself, not programmatically.

Mervin Williams
"Alex Papadimoulis" <al***@papadimoulis.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Mervin,

Sounds like your talking about Style, not Format. Formatting (as in
String.Format) is used to manipulate strings based on a format string. If
you are infact talking about Formating, then you will always need to use
String.Format against your label text, since String.Format will take more
arguments than just a base string.

-- Alex Papadimoulis
"Mervin Williams" <mw*******@innovasolutions.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Can the text property be set inside the html using the String.Format()
method? If not, is there some other means of setting the format for a

label
statically (not in code)?

Thanks in advance,

Mervin Williams


Nov 18 '05 #3
<asp:Label runat="server" id="Label1" Text="This is the label
Text"></asp:Label>

or

<asp:Label runat="server" id="Label1">This is the label Text</asp:Label>

"Mervin Williams" <mw*******@innovasolutions.net> wrote in message
news:Oj**************@TK2MSFTNGP11.phx.gbl...
I would like to set the label text property to the value of a textbox
control's text value, within the html itself, not programmatically.

Mervin Williams
"Alex Papadimoulis" <al***@papadimoulis.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Mervin,

Sounds like your talking about Style, not Format. Formatting (as in
String.Format) is used to manipulate strings based on a format string. If you are infact talking about Formating, then you will always need to use
String.Format against your label text, since String.Format will take more arguments than just a base string.

-- Alex Papadimoulis
"Mervin Williams" <mw*******@innovasolutions.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Can the text property be set inside the html using the String.Format()
method? If not, is there some other means of setting the format for a

label
statically (not in code)?

Thanks in advance,

Mervin Williams



Nov 18 '05 #4

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

Similar topics

2
by: Cybertof | last post by:
Hello, Have you seen that if you try to right align multiple labels with different content, the labels are not aligned correctly ? Is it normal ? Cybertof.
1
by: Luiz Rafael Fernandes | last post by:
Hi... i try to serialize a object inherited of label control, as follow: //definition public class WinLabel : System.Windows.Forms.Label { public WinLabel() {} }
3
by: Andrea | last post by:
I've run into a random problem with creating mailing labels through access, and I can't seem to find a solution for it. I'm running Access 2000 on Windows 2000. I'm using the label wizard to...
5
by: WindAndWaves | last post by:
Hi Gurus I have a very simple question this time. I have a continuous form with a textbox (ID number) and a label. The label has a on_click event: msgbox me.id.value If I click on the...
4
by: Stuart Norris | last post by:
Dear Readers, I am attempting to draw box around some text using unicode on multiline label. The label is forty characters wide and 12 lines deep. I have been trying to draw a box around text...
8
by: Dmitry Klymenko | last post by:
Do exists a way to detect a volume label of a disk? I've found the way to do this using WMI (System.Management) or winapi function. The second solution is principal non-portable in future, the first...
1
by: Klaus Jensen | last post by:
Hi! If I have a label that displays a price, and I want to apply formatting to it ({0:C} for instance - displays the value as currency), how do I do that? It seems like it is not possible. ...
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...
5
by: Desitech | last post by:
I have a Label on a report with a check box from a table indicating True or False. I would like to have the labels that are true to highlight yellow using conditional foramtting. The False labels to...
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...
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
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
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
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.