Friday, July 4, 2008

Let's Talk about .. Visual Studio 2005-Show Currency Format

I found on this website http://msconline.maconstate.edu/tutorials/ASPNET2/ASPNET07/aspnet07-01.aspx about how to show a text string with the format of the number (show comma symbol every 3 positions) and currency (show the currency symbol and comma symbol every 3 positions). In that website, there are two ways to show.

[VB.Net]
NumberResult.Text = String.Format("{0:N}", 111.11)
CurrencyResult.Text = String.Format("{0:C}", 222.22)

,and the second method..

[VB.net]
Dim Value As Decimal = 3333.33
NumberResult.Text = String.Format("{0:#,#.###}", Value)

CurrencyResult.Text = String.Format("{0:$ #,#.##}", Value)

1 comment:

Anonymous said...

Cevyjevarce [url=http://wiki.openqa.org/display/~buy-cytotec-without-no-prescription-online]Buy Cytotec without no prescription online[/url] [url=http://wiki.openqa.org/display/~buy-buspar-without-no-prescription-online]Buy Buspar without no prescription online[/url]