Solved

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

Posted on 2007-12-05
3
4,215 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

943 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

Need Help in Real-Time?

Connect with top rated Experts

3 Experts available now in Live!

Get 1:1 Help Now