Thousand Seperator
There are two ways to display number with thousand seperators. [ Eg: 1,000,000 ]
About Number
For Thousand Seperator [ Code Behind ]
Dim nfi As NumberFormatInfo = New CultureInfo("en-us", False).NumberFormat
Dim myint As Int64
Console.WriteLine(myint.ToString("N", nfi))
[ Repeater ]
<td align="right" nowrap="true"> <%# DataBinder.Eval(Container.DataItem, "BalAmount","{0:N}") %></td>
About Number
For Thousand Seperator [ Code Behind ]
Dim nfi As NumberFormatInfo = New CultureInfo("en-us", False).NumberFormat
Dim myint As Int64
Console.WriteLine(myint.ToString("N", nfi))
[ Repeater ]
<td align="right" nowrap="true"> <%# DataBinder.Eval(Container.DataItem, "BalAmount","{0:N}") %></td>
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home