日期:2014-05-17 浏览次数:20417 次
for (int j = 0; j < rs.Length; j++)
{
for (int k =1; k < rs.Length-1; k++)
{
if (rs[j]["产品名称"] == rs[k]["产品名称"])
{
Response.Write("<script language=javascript>alert('订单中[" + rs[k]["产品名称"].ToString() + "]重复!');</script>");
ex = false;
}
}
}
string str = "1,22,333,4,5,1,22,333,6,7,";
ArrayList al = new ArrayList();
string[] rs = str.Split(',');//拆分
for (int i = 0; i < rs.Length; i++)
{
if (al.Contains(rs[i]) == false)
{
al.Add(rs[i]);//不重复的
}
else
{
}
}
string str = "1,22,333,4,5,1,22,333,6,7,";
ArrayList al = new ArrayList();
ArrayList al2 = new ArrayList();
string[] rs = str.Split(',');//拆分
for (int i = 0; i < rs.Length; i++)