摘要: 收集过来的: //获取上传文件的扩展名 String fileExtension = System.IO.Path.GetExtension(FileUpload1.FileName).ToLower(); //获取文件名 String FileName = System.IO.Path.GetFileName(FileU... 阅读全文
posted @ 2008-07-24 23:21 liuyan 阅读(147) 评论(0) 推荐(0) 编辑
摘要: AspNetPager组件 一、用到的组件参数 RecordCount 总记录数 StartRecordIndex 开始记录编号(用于存储过程中) EndRecordIndex结束记录编号(用于存储过程中) 二.使用方法 protected void Page_Load(object sender, EventArgs e) { if (Se... 阅读全文
posted @ 2008-07-24 23:17 liuyan 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 新建表变量 declare @indextable table(id int identity(1,1), nid int) insert @indextable select 2 union select 3 select * from @indextable decla... 阅读全文
posted @ 2008-07-24 22:55 liuyan 阅读(127) 评论(0) 推荐(0) 编辑
摘要: IsPostBack 如果第一次加载IsPostBack为true 但是以后点击按钮之类的都从新执行pageload的,因为会出发postback。这时就为true。 所以if(!IsPostBack){}中放置的代码应该是第一次加载是运行。其他时间不运行的代码。 Page.IsValid 在ASP.Net中,为了方便表单的验证,提供... 阅读全文
posted @ 2008-07-24 17:43 liuyan 阅读(1600) 评论(0) 推荐(0) 编辑