1
如何检查数据集是否为空? 我写了下面的代码:检查vb.net数据集是否为空
Dim da As New SqlDataAdapter("query",connection string)
da.Fill(ds)
If (Not (ds.Tables.Count > 0)) Then
Response.Redirect("norecords.aspx?str1=" + str1)
end if
在if条件,我无法访问ds.Tables[0].rows.count
。我应该怎么做?