System.String.Format() is the next best thing since sliced bread...

System.String s = System.String.Format(
    "Formatted currency: {0:c}", myVal);



David L. Penton, Microsoft MVP
JCPenney Application Specialist / Lead
"Mathematics is music for the mind, and Music is Mathematics for the
Soul. - J.S. Bach"
[EMAIL PROTECTED]

Do you have the VBScript Docs or SQL BOL installed?  If not, why not?
VBScript Docs: http://www.davidpenton.com/vbscript
SQL BOL: http://www.davidpenton.com/sqlbol


-----Original Message-----
From: Matthew Small [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 1:10 PM
To: ActiveServerPages
Subject: ASP.NET: Formatting a label with currency


Hi everyone -
        I'm developing my first application in ASP.NET (I never used
Original ASP at all).  I have a price that I am bringing out of the
database as currency and I am putting the value into a label using
label.text = table.price.  Is there a function or something that I can
use to format this label with dollar sign and decimal?

Thanks,

Matthew Small
IT Supervisor
Showstopper National Dance Competitions
3660 Old Kings Hwy
Murrells Inlet, SC 29576
843-357-1847
http://www.showstopperonline.com


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to