最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
用户自定义控件的应用。
时间:2008-01-12 编辑:简简单单 来源:一聚教程网
asp.net中的 用户自定义控件 特点 1:实现服用;2:方便创建(相对与组件)。
以下为一个分页导航条的sample, 接见于Webdiyer,相信很多人已经如雷贯耳了,我也不多介绍。本问只是简单的 练习之作,没有什么深奥的算法和架构。
----behindCode---------------------------------------------------------------------------------------------------------------
namespace GallonKit
{
using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
///
/// PageBar 的摘要说明。
///
public delegate void PageLocalBtn(uint index);
public class PageBar : System.Web.UI.UserControl
{
protected System.Web.UI.WebControls.LinkButton LinkButton1;
protected System.Web.UI.WebControls.LinkButton btn_fistPage;
protected System.Web.UI.WebControls.LinkButton btn_lastPage;
protected System.Web.UI.WebControls.LinkButton btn_prePage;
protected System.Web.UI.WebControls.LinkButton btn_nextPage;
protected System.Web.UI.WebControls.Label lb_PageCount;
protected System.Web.UI.WebControls.TextBox tb_pageIndex;
protected System.Web.UI.WebControls.LinkButton btn_local;
public PageLocalBtn LocalBtnClick;
以下为一个分页导航条的sample, 接见于Webdiyer,相信很多人已经如雷贯耳了,我也不多介绍。本问只是简单的 练习之作,没有什么深奥的算法和架构。
----behindCode---------------------------------------------------------------------------------------------------------------
namespace GallonKit
{
using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
///
/// PageBar 的摘要说明。
///
public delegate void PageLocalBtn(uint index);
public class PageBar : System.Web.UI.UserControl
{
protected System.Web.UI.WebControls.LinkButton LinkButton1;
protected System.Web.UI.WebControls.LinkButton btn_fistPage;
protected System.Web.UI.WebControls.LinkButton btn_lastPage;
protected System.Web.UI.WebControls.LinkButton btn_prePage;
protected System.Web.UI.WebControls.LinkButton btn_nextPage;
protected System.Web.UI.WebControls.Label lb_PageCount;
protected System.Web.UI.WebControls.TextBox tb_pageIndex;
protected System.Web.UI.WebControls.LinkButton btn_local;
public PageLocalBtn LocalBtnClick;
相关文章
- C#复制数组的两种方式及效率比较解读 10-24
- ASP.NET Identity用法解析 10-24
- ASP.NET MVC使用Identity增删改查用户介绍 10-24
- C语言中atoi函数模拟实现介绍 10-18
- .Net反向代理组件Yarp用法介绍 10-10
- .NET使用YARP通过编码方式配置域名转发实现反向代理教程 10-10