I am using VS2008,ASP.net,C#.net.
I have a web applicaion which uses NPOI dll to export to excel 2003. How do I display a number with thousand separator in Indian style(
Try this
int value 773740;
Response.Write(value.ToString("N"));
//or
Response.Write(value.ToString("#,#"));
To format double to string with use of thousands separator use zero and comma separator before an usual float formatting pattern, e.g. pattern „0,0.0“ formats the number to use thousands separators and to have one decimal place.
String.Format("{0:0,0.0}", 12345.67); // "12,345.7"
String.Format("{0:0,0}", 12345.67); // "12,346"
Refer more here http://www.csharp-examples.net/string-format-double/