Solved

.ToString.Format(?????) ASP.net 2.0

Posted on 2007-12-05
3
4,218 Views
Last Modified: 2013-11-26
Here's an easy question. I need to format a string from MyString.ToString.Format(FORMATTYPEHERE)
I would like to take a number such as
123123123123
to:
123,123,123,123
Anybody know what to put into "FORMATTYPEHERE" ???
Only whole number Integers will be used.
Thanks, Chris :)
0
Comment
Question by:jumpstart0321
  • 2
3 Comments
 
LVL 10

Expert Comment

by:Alpesh Patel
ID: 20414714
MyString.ToString.Format("{0:###,###,###} , YourNO here in the form of String"
0
 
LVL 10

Accepted Solution

by:
Alpesh Patel earned 500 total points
ID: 20414724
Sorry syntex error

MyString.ToString.Format("{0:###,###,###}" ,Number in the form of string)
0
 

Author Closing Comment

by:jumpstart0321
ID: 31412952
Thx :)
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question