摘要: 一、包含中文字符 select * from 表名 where 列名 like '%[吖-座]%' 二、包含英文字符 select * from 表名 where 列名 like '%[a-z]%' 三、包含纯数字 select * from 表名 where 列名 like '%[0-9]%' 阅读全文
posted @ 2019-12-06 16:48 brant_Man 阅读(3122) 评论(0) 推荐(0) 编辑
摘要: 在项目中,如果用到Ajax就经常要用到将后台得到的数据比如DataTable转换为Json字符串。在这里向大家分享一个DataTable转Json的方法; 1 public static string DtToSON(DataTable dt) 2 { 3 ... 阅读全文
posted @ 2015-05-05 20:32 brant_Man 阅读(908) 评论(0) 推荐(0) 编辑
摘要: View Code 1 1using System; 2 2using System.Collections.Generic; 3 3using System.Text; 4 4using System.Security.Cryptography; 5 5 6 6namespace md5 7 7{ 8 8 class Program 9 9 {10 10 static void Main(string[] args)11 11 {12 12 Console.WriteLine(UserMd5("8"));13 13 ... 阅读全文
posted @ 2012-10-31 21:55 brant_Man 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑