摘要: 阅读全文
posted @ 2009-07-18 09:37 iZiYue 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 在GridView的事件中增加RowDataBound,在这个事件中首先判断当前行是不是数据行,然后进行变色处理,代码如下所示:if (e.Row.RowType == DataControlRowType.DataRow) { //鼠标经过时,行背景色变 e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#CC00... 阅读全文
posted @ 2009-07-18 09:06 iZiYue 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 一个简单的例子说明GridView与DropDownList结合的用法。<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" AllowSorting="True" PageSize="6">... 阅读全文
posted @ 2009-07-17 14:47 iZiYue 阅读(6552) 评论(0) 推荐(0) 编辑
摘要: 点击列头,可以将列字段按照升降序进行排序。<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" AllowSorting="True" OnSorting="GridView1_Sorting"&g... 阅读全文
posted @ 2009-07-17 11:14 iZiYue 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 在开发中用到GridView控件,需要种种操作,在网上看到了很多高手的写法,我在这里也借鉴了CSDN上清清月儿的写法,先写编辑,更新和取消操作的方法。 <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="No... 阅读全文
posted @ 2009-07-17 10:05 iZiYue 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 连接数据库需要配置Web.config的Sql server,WebDAL节点是需要生成抽象工厂的实例,本登陆用到了3层结构+反射抽象工厂,才疏学浅,请大家多多指教。BLL类:using System;using System.Collections.Generic;using System.Text;using Logindemo.IDAL;using Logindemo.Model;using... 阅读全文
posted @ 2009-07-16 14:46 iZiYue 阅读(658) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-07-12 23:36 iZiYue 阅读(191) 评论(1) 推荐(0) 编辑
摘要: [代码][代码] 阅读全文
posted @ 2009-07-12 23:08 iZiYue 阅读(288) 评论(0) 推荐(0) 编辑
摘要: [代码][代码] 阅读全文
posted @ 2009-07-12 16:45 iZiYue 阅读(216) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-07-12 16:40 iZiYue 阅读(193) 评论(0) 推荐(0) 编辑
ChinaHDTV.ORG