龍騎少校

玩的就是技术。ko!!!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 32 下一页

2008年9月22日

摘要: 7.鼠标移到GridView某一行时改变该行的背景色方法二: 效果图: 做法:和上面的一样就是代码不同 后台代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1protected void GridView1_RowDataBound(obje... 阅读全文

posted @ 2008-09-22 17:32 龍騎少校 阅读(173) 评论(1) 推荐(0) 编辑

摘要: 6.鼠标移到GridView某一行时改变该行的背景色方法一: 效果图: 做法:双击GridView的OnRowDataBound事件;在后台的GridView1_RowDataBound()方法添加代码,最后代码如下所示: 后台代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.Code... 阅读全文

posted @ 2008-09-22 17:29 龍騎少校 阅读(263) 评论(0) 推荐(0) 编辑

摘要: 5.GridView和CheckBox结合: 效果图: 后台代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1using System; 2using System.Data; 3using System.Configuration; 4us... 阅读全文

posted @ 2008-09-22 17:26 龍騎少校 阅读(216) 评论(0) 推荐(0) 编辑

摘要: 4.GridView和下拉菜单DropDownList结合: 效果图: 后台代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Data; 3using System.Configura... 阅读全文

posted @ 2008-09-22 17:21 龍騎少校 阅读(263) 评论(0) 推荐(0) 编辑

摘要: 3.GridView正反双向排序:效果图:点姓名各2次的排序,点其他也一样可以。 后台代码: 后台代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1using System; 2using System.Data; 3using Syste... 阅读全文

posted @ 2008-09-22 17:17 龍騎少校 阅读(243) 评论(0) 推荐(0) 编辑

摘要: 2.GridView选中,编辑,取消,删除: 效果图: 后台代码:你可以使用sqlhelper,本文没用。代码如下: 后台代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Data... 阅读全文

posted @ 2008-09-22 17:12 龍騎少校 阅读(193) 评论(0) 推荐(0) 编辑

摘要: 1.GridView无代码分页排序: 效果图: 1.AllowSorting设为True,aspx代码中是AllowSorting="True";2.默认1页10条,如果要修改每页条数,修改PageSize即可,在aspx代码中是PageSize="12"。3.默认的是单向排序的,右击GridView弹出“属性”,选择AllowSorting为True即可。 阅读全文

posted @ 2008-09-22 17:07 龍騎少校 阅读(191) 评论(0) 推荐(0) 编辑

2008年9月19日

摘要: 前台html代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->级联DropDownList无刷新 - - - - - - - - - - - - 后台c#代码Code highlighting produced by Act... 阅读全文

posted @ 2008-09-19 15:49 龍騎少校 阅读(721) 评论(1) 推荐(0) 编辑

摘要: 1、ArrayList数据列表(使用数据列表必须引入using System.Collections命名空间) Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->protected void Page_Load(object sender, Event... 阅读全文

posted @ 2008-09-19 15:39 龍騎少校 阅读(174) 评论(0) 推荐(0) 编辑

摘要: 在.net开发中常使用的DropDownList个人总结如下: 1.最常见的是手动添加控件Item,这里大家都会就不多说了。 2.还有一种是绑定DATETABLE的 个人感觉不错绑定分两种方式 e.g.: Private void FillCurrencyDDL() ... 阅读全文

posted @ 2008-09-19 15:30 龍騎少校 阅读(152) 评论(0) 推荐(0) 编辑

上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 32 下一页