摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class Default2 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Bindtreevi... 阅读全文
posted @ 2011-11-29 23:40
SOD_QWER
阅读(164)
评论(0)
推荐(0)
摘要:
从Asp.net 1.1开始,我们就开始使用DataGrid、DataList、Repeater控件,到了Asp.net 2.0又增加了GridView控件。GridView控件在DataGrid上做了优化和改进,功能很强大,但是自定义性不够强。Repeater自定义性非常高。而DataList则兼而有之,其他方面本文不谈。这里就说下怎么给DataList分页。给DataList分页有两个办法:1、自己写 2、用第三方控件(如AspNetPager)使用第三方控件的方法我就不说了,这里主要说说如何自己实现分页方法。我的DataList分页方法的核心原理是利用PagedDataSource对象, 阅读全文
posted @ 2011-11-29 23:38
SOD_QWER
阅读(109)
评论(0)
推荐(0)
浙公网安备 33010602011771号