摘要: 例子Table Aaid adate 1 a1 2 a2 3 a3 TableBbid bdate 1 b1 2 b2 4 b4 两个表a,b相连接,要取出id相同的字段 select * from a inner join b on a.aid = b.bid这是仅取出匹配的数据. 此时的取出的是: 1 a1 b1 2 a2 b2 那么left join 指: select * from a l... 阅读全文
posted @ 2009-05-12 14:59 非常菜鸟 阅读(415) 评论(0) 推荐(0) 编辑
摘要: #region 缩略图相关属性和方法 /// <summary> /// 生成缩略图 /// </summary> /// <param name="originalImagePath">源图路径(物理路径)</param> /// <param name="thumbnailPath">缩略图路径(物理路径)</param>... 阅读全文
posted @ 2009-05-07 14:41 非常菜鸟 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1.定义时间declare @d datetime set @d=getdate()2.要执行的sql语句 select * from protypeinfo--select PT_ID,PT_Name,PT_Name_E,pt_parentid from protypeinfo3.查看执行时间 ---select [语句执行花费时间(毫秒)]=datediff(ms,@d,getdate()) ... 阅读全文
posted @ 2009-05-07 10:15 非常菜鸟 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 非常好用,像session一样方便 阅读全文
posted @ 2009-05-06 17:47 非常菜鸟 阅读(98) 评论(0) 推荐(0) 编辑
摘要: -------------- 函数检索 --------------trim函数: trim() lTrim() rTrim()校验字符串是否为空: checkIsNotEmpty(str)校验字符串是否为整型: checkIsInteger(str)校验整型最小值: checkIntegerMinValue(str,val)校验整型最大值: checkIntegerMaxValue(str,va... 阅读全文
posted @ 2009-05-05 14:50 非常菜鸟 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #region 数据分页 /// <summary> /// 单数据表数据分页 /// </summary> /// <param name="TableName">数据库表名称</param> /// <param name="Conditions">查询条件</param> /// <param name="Page... 阅读全文
posted @ 2009-05-05 10:10 非常菜鸟 阅读(169) 评论(0) 推荐(0) 编辑
摘要: QQ: 88888001 淘宝旺旺: wangwang001 Yahoo Messenger: yaho0001 MSN: msn001 Skype: skype001 阅读全文
posted @ 2009-04-29 17:06 非常菜鸟 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 使用这样不会将错误抛给用户 //防止非法字符 protected void Page_Error(object sender, EventArgs e) { Exception ex = Server.GetLastError(); if (HttpContext.Current.Server.GetLastError() is HttpReque... 阅读全文
posted @ 2009-04-29 16:56 非常菜鸟 阅读(442) 评论(1) 推荐(0) 编辑
摘要: --查询指定节点及其所有子节点的函数 CREATE FUNCTION f_Cid(@ID char(3)) RETURNS @t_Level TABLE(ID char(3),Level int) AS BEGIN DECLARE @Level int SET @Level=1 INSERT @t_Level SELECT @ID,@Level WHILE @@RO... 阅读全文
posted @ 2009-04-29 16:55 非常菜鸟 阅读(497) 评论(1) 推荐(0) 编辑
摘要: 1.在Page_Load中注册 Ajax.Utility.RegisterTypeForAjax(typeof(Index)); 2.在webconfig中加入 3.写ajax函数 [Ajax.AjaxMethod]注意一定要加这个,并且函数为public 如: [Ajax.AjaxMethod] public DataSet BindProtypeByABC(String ... 阅读全文
posted @ 2009-04-29 16:53 非常菜鸟 阅读(132) 评论(0) 推荐(0) 编辑