最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
用户自定义控件的应用。
时间:2022-07-02 11:59:43 编辑:袖梨 来源:一聚教程网
中的 用户自定义控件 特点 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;
相关文章
- 王者荣耀10周年3千点券这么花-十周年3000点券使用建议 10-13
- 明日方舟真言值得抽吗-真言抽取建议 10-13
- 永劫无间手游南宫锦武器选哪个好-南宫锦武器选择推荐 10-13
- 王者荣耀月之回廊入口在哪-月之回廊入口位置介绍 10-13
- 羊蹄山之魂的时代背景是什么 羊蹄山之魂时代故事背景介绍 10-13
- 洛克王国世界吉格斯怎么打-吉格斯打法攻略 10-13