2008年2月20日
摘要: 在项目中,把删除的组合按钮都写成一个控件,这样子我就不会再每个都写了,只要直接拉进页面就OK啦呵呵,感觉方便多了usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.ComponentModel;namesp... 阅读全文
posted @ 2008-02-20 21:06 Eway 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 我们在用GridView时,通常都要为GridView添加CHECKBOX这一列,所以把它扩展来,比较方便下面在扩展用到了ITemplate这个接口,这个接口每次都会调用InstantiateIn这个方法,所以我们在这个方法上实现一些加入checkbox的操作.代码如下: CodeCode highlighting produced by Actipro CodeHighlighter (free... 阅读全文
posted @ 2008-02-20 20:59 Eway 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 在GridView中加个行的颜色,这样子我们就不用每次都去写这一些代码了,呵呵,又少做一些工作,在个这要是在GridView中重写ROWDATABOUND,在数据绑定时写上这样代码.我们可以在属性中的扩展中,选择所需的颜色.CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighl... 阅读全文
posted @ 2008-02-20 19:22 Eway 阅读(360) 评论(0) 推荐(0) 编辑
摘要: .net里面的BUTTON没有一下提示如删除BUTTON要有一个提示框,当用户点确定会才进行删除所以到BUTTON进行的扩展代码如下:using System;using System.Web.UI;using System.Web.UI.WebControls;using System.ComponentModel;using System.Text;namespace WebClass{ pu... 阅读全文
posted @ 2008-02-20 19:13 Eway 阅读(430) 评论(0) 推荐(0) 编辑