怎样处理:
如:把123456789转成这种样式:123,456,789
把12345转换成12,345各样明白了吗?就是把上传文件的大小以这种方式显示出来。

解决方案 »

  1.   

    将其转化为string,然后用string的静态方法Insert
      

  2.   

    string  typeSize="123456789";
    string [] strTypeSize;for(int i=3;i<=typeSize.Length;i+3)
    {
     strTypeSize[ii]=typeSize.SubString(typeSize.Length-i,3)
    }
     string newTypeSize="";for(int i=strTypeSize.Length;i>=0;i--)
    {
      newTypeSize+=","+newTypeSize[i].ToString();

    Response.Write(newTypeSize);
      

  3.   

    formatfloat()http://www.qq166.com/vip.htm?qq=552858
    腾讯过大年,六位数的QQ不要要钱,点击马上申请!
      

  4.   

    错了,改一下,呵呵:string  typeSize="123456789";
    string [] strTypeSize;for(int i=3;i<=typeSize.Length;i+3)
    {
     strTypeSize[ii]=typeSize.SubString(typeSize.Length-i,3)
    }
     string newTypeSize=newTypeSize[strTypeSize.Length].ToString();for(int i=strTypeSize.Length-1;i>=0;i--)
    {
      newTypeSize+=","+newTypeSize[i].ToString();

    Response.Write(newTypeSize);
      

  5.   

    to:seaonce(雨花中的小皮鞋) 
    看看这句,i 都没变for(int i=3;i<=typeSize.Length;i+3)
      

  6.   

    seaonce(雨花中的小皮鞋) ,你能把调试好的程序发给我吗?
      

  7.   

    System.Globalization.NumberFormatInfo nfi = new System.Globalization.CultureInfo("en-US").NumberFormat;
    Int64 myInt = 123456789;
    Response.Write(myInt.ToString("N",nfi));