//用语测试的一个存储在数据库中的多个电话号码的组合
string tel="027-12351234,010-21352538,001-12";
string Telphone=string.Empty;
string[] tels=tel.ToString().Split(',');
string ss=string.Empty;
for(int i=0;i<tels.Length;i++)
{
ss+=tels[i]+" ";
}
Response.Write(ss+"<br/>");
string tmp=string.Empty;
for (int i=0;i<tels.Length;i++)
{
tmp=tels[i];
if(tmp.Replace("-"," ").Trim()!="")
Telphone+=tels[i]+" ";
}
Response.Write(Telphone);