Hashtable hashtable = ctr.Values;
foreach (DictionaryEntry de in hashtable)
{
string temp = de.Key.ToString();
string[] tempary = temp.Split(',');
if (tempary[1].Equals(NoticeMan))
{
NoticeAccount = tempary[0];
break;
}
}
DataSet ds = (DataSet)ViewState["ds"];
//这边判断,用户姓名不能重复
DataTable dt = ds.Tables[0];
bool flag = true;
for (int i = 0; i < dt.Rows.Count; i++)
{
if (dt.Rows[i]["NoticeMan"].ToString().Equals(NoticeMan) && row!=i)
{
flag = false;
break;
}
}