tryint i = 963258741;
Response.Write(i.ToString("#,##0"));

解决方案 »

  1.   

    public string ConvertToCurrency(double strTemp)
        {
            return strTemp.ToString("N", NumberFormatInfo.CurrentInfo);
        }
      

  2.   

    int i = 963258741;
                    string a= i.ToString("#,##0");
      

  3.   

    自己算........呵呵 变态
            string xx = TextBox1.Text;
            int i = xx.Length % 3;
            int q = 0;
            foreach (char x in xx)
            {
                q++;
                Response.Write(x.ToString());
                if (q%3==i &&q!=xx.Length)
                {
                    Response.Write(",");
                }
            }