读取一行名字如 唐清秀 加个 '^' 符号
读取第二行 如W27720499 加个'#'先 用Split 根据 '#'分组 
然后显示这一段时 再用 '^'分组  

解决方案 »

  1.   

    给个Split的例子。
    string str = "11,aa,bb,22";
    string[] a = str.Split(',');
    for(int i=1;i<a.Length;i++)
    {
     Response.Write(a[i]);
    }
      

  2.   

    int i=0;基本常识,不用有误。
      

  3.   

    我看用"W"来分割就行.按LZ现行系统分析.这个W是不会变的
      

  4.   

    看你的字符串是怎么存储的了
    一般有SubString(),最好这里面是Indexof
    还有split也挺好的吧
      

  5.   

    已验证        for (int i = 0; i < this.ListBox1.Items.Count; i++)
            {
                if (ListBox1.Items[i].Value.Length!=0)
                {
                    ListItem lt = ListBox1.Items[i];
                    if (i%3==0)
                    {
                        this.ListBox2.Items.Add(lt);
                    }
                    else
                    {
                        this.ListBox3.Items.Add(lt);
                    }
                }
            }