为什么会出现重复比较的情况??谢谢
for (int i = 0; i < gz; i++)
{
for (int j = 0; j < 492; j++)
{
int len = (ds2.Tables[0].Rows[j][0].ToString().Length);
if ((ds1.Tables[0].Rows[i][0].ToString()).Substring(0, len) == ds2.Tables[0].Rows[j][0].ToString())
{
// break;
Response.Write(ds1.Tables[0].Rows[j][0].ToString() + " <br> ");
continue;
}
}
}
[解决办法]
......
[解决办法]
ds1.Tables[0].Rows[j][0]
还是
ds1.Tables[0].Rows[i][0].
[解决办法]
不明白
重复又怎么了
[解决办法]
?