Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have two label control and it's contain a value like 122629,23456

and when i run our page then it show 122629 and 23456 but i want to show 1,22,629 and 23,456

but i don't know how i do..so help me..
Posted
Updated 10-Sep-12 21:12pm
v4

Hi,

String formats should help you.
Check this out.

http://msdn.microsoft.com/en-us/library/0c899ak8.aspx[^]
 
Share this answer
 
 
Share this answer
 
Comments
Shambhoo kumar 10-Sep-12 3:01am    
not web application i want windows application
C#
string Ans = (122629).ToString("N0", CultureInfo.CreateSpecificCulture("Hi-In"));

Happy Coding!
:)
 
Share this answer
 
Comments
Shambhoo kumar 12-Sep-12 3:49am    
Thanks mam....
:)

Regard
Sham

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900