By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,190 Members | 1,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,190 IT Pros & Developers. It's quick & easy.

Label formatting

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
<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 discussion thread is closed

Replies have been disabled for this discussion.