怎样将一字符数组分段放入另外一字符串
string str = "86,07/12/13 10:29,2,3,4.00,1.40, ¦87,07/12/13 10:29,222,333,444.00,1.44, ¦88,q,w,1,1.00,1.10, ¦";//注:86,07/12/13 10:29,2,3,4.00,1.40, ¦为网格控件里输入的一行数据string [] RowSeprater ;
RowSeprater = str.Split(' ¦');
int RowsCount;
RowsCount = RowSeprater.Length;
string [] ColSeprater;
int ColsCount;
ColsCount = 6;
for(int i=1;i <RowsCount;i++)
{
ColSeprater = RowSeprater[i-1].Split(',');
if( (i%3)!=0 )//每3行分一段,把这3行拼接组成一字符串输出
Response.Write(" <script language='javascript'> alert(3行
字符串); </script> ");
}
每3行分一段,把这3行拼接组成一字符串输出,该怎么做? --------------------编程问答--------------------
for(int i=0;i <RowsCount;i++)
{
ColSeprater += RowSeprater[i].Split(',');
if( (i%3)!=0 )
Response.Write(" <script language='javascript'> alert(3行
字符串); </script> ");
} --------------------编程问答-------------------- up
补充:.NET技术 , ASP.NET