最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
分页控件源代码--组合控件
时间:2022-07-02 12:01:59 编辑:袖梨 来源:一聚教程网
using System;
using System.IO;
using System.Drawing;
using System.Data;
using System.Data.SqlClient;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.ComponentModel;
namespace Pager
{
?///
?/// coolPager 的摘要说明。
?///
?public enum SortType
?{
??ASC=0,Desc=1
?};
?public enum IsCount
?{
??noReturnRecordCount=0,returnRecordCount
?};
?[DefaultProperty("copyRight"),
??ToolboxData("<{0}:coolPager runat=server>")]
?public class coolPager : System.Web.UI.WebControls.WebControl,INamingContainer
?{?
??protected int recordCount=0;
??protected Control _controlToPaginate;
??protected PagedDataSource _dataSource;
??[Bindable(true),
???Category("Appearance"),
???DefaultValue("")]
??public string copyRight
??{
???get
???{
????return "版权所有:千山一鸟";
???}
??}
??//连接字符串
??[Description("数据源连接字符串"),DefaultValue("")]
??public string connectionString
??{
???get
???{
????object obj = ViewState["connectionString"];
????return (obj==null)?String.Empty:obj.ToString();
???}
???set
???{
????ViewState["connectionString"]=value;
???}
??}
??//显示分页的控件
??[Description("用于显示分页的控件"),DefaultValue("")]
??public string controlToPaginate
using System.IO;
using System.Drawing;
using System.Data;
using System.Data.SqlClient;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.ComponentModel;
namespace Pager
{
?///
?/// coolPager 的摘要说明。
?///
?public enum SortType
?{
??ASC=0,Desc=1
?};
?public enum IsCount
?{
??noReturnRecordCount=0,returnRecordCount
?};
?[DefaultProperty("copyRight"),
??ToolboxData("<{0}:coolPager runat=server>")]
?public class coolPager : System.Web.UI.WebControls.WebControl,INamingContainer
?{?
??protected int recordCount=0;
??protected Control _controlToPaginate;
??protected PagedDataSource _dataSource;
??[Bindable(true),
???Category("Appearance"),
???DefaultValue("")]
??public string copyRight
??{
???get
???{
????return "版权所有:千山一鸟";
???}
??}
??//连接字符串
??[Description("数据源连接字符串"),DefaultValue("")]
??public string connectionString
??{
???get
???{
????object obj = ViewState["connectionString"];
????return (obj==null)?String.Empty:obj.ToString();
???}
???set
???{
????ViewState["connectionString"]=value;
???}
??}
??//显示分页的控件
??[Description("用于显示分页的控件"),DefaultValue("")]
??public string controlToPaginate
相关文章
- 《彩色点点战争》推图常用三大主c玩法详解 01-23
- 《燕云十六声》池鱼林木任务攻略 01-23
- 《大连地铁e出行》查看行程记录方法 01-23
- 《明日方舟》2025春节限定干员余角色介绍 01-23
- 《崩坏:星穹铁道》万敌光锥搭配攻略 01-23
- 《燕云十六声》一药千金任务攻略 01-23