摘要: View Code 1 //在请求管道 的 第11个事件 注册 方法 2 void Application_PreRequestHandlerExecute(object sender, EventArgs e) 3 { 4 //检查是否请求的为 admin 文件夹下的文件,如果是,则检查session权限 5 HttpApplication app = sender as HttpApplication; 6 HttpContext context = app.Context; 7 ... 阅读全文
posted @ 2012-10-21 23:45 brant_Man 阅读(185) 评论(0) 推荐(0) 编辑
摘要: create PROCEDURE [dbo].[GetPageDataOut](@tn nvarchar(30),--表名称@idn nvarchar(20),--表主键名称@pi int = 1,--当前页数 @ps int = 7,--每页大小@rc int output,--总行数(传出参数)@pc int output--总页数(传出参数))ASDECLARE @sql NVARCHAR(225),@sqlCount NVARCHAR(225)SET @sqlCount = 'SELECT @rc=COUNT(['+@idn+']),@pc=CEILING((C 阅读全文
posted @ 2012-10-21 23:40 brant_Man 阅读(265) 评论(0) 推荐(0) 编辑