string[,] Arr = new string[2, 4];
Arr[0, 0] = "UserName";
Arr[0, 1] = Server.UrlDecode(MyWeb.Web.ReadCookie(this, "", "UserName"));
Arr[0, 2] = "1";
Arr[0, 3] = "等于";
Arr[1, 0] = "ZzName";
Arr[1, 1] = this.LabelProjectYQ.Text;
Arr[1, 2] = "1";
Arr[1, 3] = "等于";
DataTable UserCodeDT = MyWeb.MyData.GetDBList("UserCode", Arr, "UserCodeID", "1");
上面就是读取UserCode表里的数据,如果要判断在UserCode表里有要查询的数据是否有数据。下面应该怎么写????if(当表里行数为0时)
{
}
else
{
}
Arr[0, 0] = "UserName";
Arr[0, 1] = Server.UrlDecode(MyWeb.Web.ReadCookie(this, "", "UserName"));
Arr[0, 2] = "1";
Arr[0, 3] = "等于";
Arr[1, 0] = "ZzName";
Arr[1, 1] = this.LabelProjectYQ.Text;
Arr[1, 2] = "1";
Arr[1, 3] = "等于";
DataTable UserCodeDT = MyWeb.MyData.GetDBList("UserCode", Arr, "UserCodeID", "1");
上面就是读取UserCode表里的数据,如果要判断在UserCode表里有要查询的数据是否有数据。下面应该怎么写????if(当表里行数为0时)
{
}
else
{
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货