![]() |
#2
cnfarer2010-09-25 20:18
|
我要获取他的数据条数、并且在asp页面显示
public string GetCountBySidAndTrainId(int sit, int tid)
{
string sql = "select count(*) from SitInfo where sittypeid = '"+sit+"' and trainid = '"+tid+"' and noid = 1";
DataSet objset = new DataSet();
objset = db.GetDataSet(sql);
//这里要怎么返回?
}
页面怎么接收?