2007年3月20日

Asp.Net 2.0 中错误处理的几种方法(发邮件及记录信息到系统事件中)

摘要: 一般用到文件Global.asax,但也有一些问题,详见:asp.net 2.0 中Global.asax 使用小記(http://www.cnblogs.com/cnaspnet/articles/521045.html)因此,代码分离: using System;using System.Web;using System.Diagnostics;namespace FileECR.Webs... 阅读全文

posted @ 2007-03-20 12:27 ★金★ 阅读(648) 评论(1) 推荐(0) 编辑

Sql Server中自动序号的方法

摘要: 第一种:使用identity函数增加临时表的方法 select id = identity(int,1,1),* into #tmp from tableselect * from #tmpdrop table #tmp 在SQL2005中新增了ROW_NUMBER()函数,给我们带来了很多方便,使用方法如下: SELECT id,ROW_NUMBER() OVER (order by id)as... 阅读全文

posted @ 2007-03-20 09:09 ★金★ 阅读(2141) 评论(1) 推荐(0) 编辑

GridView自动序号

摘要: 第一种方式,直接在Aspx页面GridView模板列中.这种的缺点是到第二页分页时又重新开始了. 第二种方式分页时进行了计算,这样会累计向下加. ... 阅读全文

posted @ 2007-03-20 08:52 ★金★ 阅读(2369) 评论(0) 推荐(0) 编辑

导航