2008年12月17日
摘要: 为了理清ASP.NET页面的生命周期特转载此文章 原文地址:http://www.cnblogs.com/webabcd/archive/2007/03/12/671400.html 介绍 弄懂Page的生存周期(lifecycle)对于开发asp.net应用程序来说是非常重要的。很多.net初学者在处理动态加载控件的时候都出现过回发后丢值,丢状态之类的问题。HTTP协议是无状态的,这就是web... 阅读全文
posted @ 2008-12-17 19:04 麻衣之光 阅读(355) 评论(1) 推荐(0) 编辑
  2008年12月16日
摘要: 将CommandField的ShowDeleteButton=True,那么当点击这个CommandField字段时会触发RowDeleting事件 而BUttonField需要将CommandName=Delete才会激发RowDeleting事件 Code highlighting produced by Actipro CodeHighlighter (freeware)http://w... 阅读全文
posted @ 2008-12-16 20:21 麻衣之光 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 要先设置GridView的AllowSortring=true,这样当点击列标题的时候才能激发GridView的Sorting事件进行排序 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System... 阅读全文
posted @ 2008-12-16 18:11 麻衣之光 阅读(407) 评论(0) 推荐(0) 编辑
  2008年12月11日
摘要: 在线相册的项目下载 阅读全文
posted @ 2008-12-11 18:29 麻衣之光 阅读(367) 评论(4) 推荐(0) 编辑
摘要: 大家看了前面的展示图,知道也就3个页面,分为浏览图片,上传图片,删除图片。页面布局是现在的主流div+css。三个页面布局类似用了母板页。难点和关键就是那2个自定义用户控件。先说说ImageLinks,就是在打开浏览图片那个页面,我是根据项目中的一个图片文件夹下的图片数量动态的通过ImageLinks这个用户控件加载图片名称以及它的扩展名的。另一个ImageButtons也是类似只不过加载的是图片... 阅读全文
posted @ 2008-12-11 17:37 麻衣之光 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 首先是App_Code文件夹下ImageFIleOperator.cs 图像文件操作类 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Data; using System.Configur... 阅读全文
posted @ 2008-12-11 17:05 麻衣之光 阅读(868) 评论(6) 推荐(0) 编辑
  2008年12月10日
摘要: 阅读全文
posted @ 2008-12-10 21:46 麻衣之光 阅读(263) 评论(1) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1就一些核心代码 2ClientInfo.cs和ClientinfoAccessObj.cs在学习一中有过了 3 4using System; 5using System.Data; ... 阅读全文
posted @ 2008-12-10 17:06 麻衣之光 阅读(293) 评论(0) 推荐(0) 编辑
  2008年12月9日
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Default.aspx 无标题页 ... 阅读全文
posted @ 2008-12-09 22:49 麻衣之光 阅读(246) 评论(0) 推荐(0) 编辑
  2008年12月8日
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Data; 3using System.Configuration; 4using System.Web; 5using Sy... 阅读全文
posted @ 2008-12-08 21:51 麻衣之光 阅读(315) 评论(0) 推荐(0) 编辑