bysxingyun - 2016/4/21 18:39:32
我在表单模型 中使用了 自定义的 get_date(),如下所示:
Get_Data("select * from article where titlepic<>'' order by thedate desc");
使用自定义get_date()方法后,显示信息数量 无法控制。暂时只能使用 例如:select top 10....,如下:
Get_Data("select top 10 * from article where titlepic<>'' order by thedate desc");
有什么方法 把 显示信息数量 的值 赋值 给 dt.Rows.Count?
bysxingyun - 2016/4/21 19:55:12
dt1=Get_Data("select * from pa_module where id=191");
dr1=dt1.Rows[0];
shownum=int.Parse(dr1["show_num"].ToString());
除了 上述办法 还有 更好的办法吗?~请教