sqldatasource有无记录!
我怎么知道sqldatasource中有无找到记录???比如我的代码为:
……
Dim strcon As String = System.Configuration.ConfigurationManager.ConnectionStrings("OrderTotalConnectionString").ConnectionString
SqlDataSource1.DataSourceMode = SqlDataSourceMode.DataSet
SqlDataSource1.SelectCommand = sqlstr
SqlDataSource1.ConnectionString = strcon
GridView1.DataBind()
……
我想知道怎么判断是否查到记录??