Advertisement

04.15.2008 at 11:40PM PDT, ID: 23326137
[x]
Attachment Details

How to use display "mask" in C#

Asked by mmexchange in Microsoft Visual C#.Net, Visual Studio 2008

Tags: C# Web app

Here's what I'm doing to take a "float" number of, say 1259.9500 to 1259.95
      lblTotalDonations.Text = dsDonationTotals.DonationTotals[0].DonationTotal.ToString().Substring(0, dsDonationTotals.DonationTotals[0].DonationTotal.ToString().Length - 2);

But what I really want is to apply a "mask" and take the Total (1259.9500)  to $1,259.95
Is there a "money" mask? How do you do this? (From Codebehind)

Using C# (Visual Studio Pro 2008) Web appStart Free Trial
 
Loading Advertisement...
 
[+][-]04.15.2008 at 11:42PM PDT, ID: 21365269

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 11:51PM PDT, ID: 21365303

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, Visual Studio 2008
Tags: C# Web app
Sign Up Now!
Solution Provided By: Limbeck
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628