摘要: 比较万能的分页:select top 每页显示的记录数 * from topic where id not in (select top (当前的页数-1)×每页显示的记录数 id from topic order by id desc) order by id desc需要注意的是在access中不能是top 0,所以如果数据只有一页的话就得做判断了。。SQL2005中的分页代码:withtemptblas(SELECTROW_NUMBER()OVER(ORDERBYiddesc)ASRow,...)SELECT*FROMtemptblwhereRowbetween@startIn 阅读全文
posted @ 2011-02-25 15:56 李只蚊 阅读(229) 评论(0) 推荐(1) 编辑
摘要: 1.找到web.config配置文件2.制作出错页error.htm,代码如下<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>出错拉~~~</title> <link 阅读全文
posted @ 2011-02-25 13:12 李只蚊 阅读(415) 评论(0) 推荐(0) 编辑