日期:2011-09-10  浏览次数:20455 次

控件的属性及事件定义


  Private Shared ReadOnly EventibGotoPageClick As New Object()
        Private Shared ReadOnly EventlbGotoPageClick As New Object()

        Private Conn As SqlConnection
        Private _StoredProcedureName As String
        Private _ControlToDataBind As String
        Private _GoToStyle As StyleGoTo = StyleGoTo.LinkButton

        Private intPageCount As Int32 = 0
        Private intRecordCount As Int32 = 0
        Private intPageSize As Int32

        Private _DefaultImageUrl As String
        Private _HoverImageUrl As String
        Private _PressedImageUrl As String

        Private _controlToPaginat As Control
        Private labPageInfo As Label
        Private labPageInfoText_01 As Label
        Private labPageInfoText_02 As Label
        Private labPageInfoText_03 As Label
        Private labPageInfoText_04 As Label

        Private txtPageSize As TextBox
        Private txtPageIndex As TextBox
        Private ibGotoPage As ImageButton
        Private lbGotoPage As LinkButton

        Private lbFirstPage As LinkButton
        Private lbPrevPage As LinkButton
        Private lb下一页:ASP.net 2.0 自定义控件的开发之数据分页 第四章 As LinkButton
        Private lb上一页:ASP.net 2.0 自定义控件的开发之数据分页 第二章 As LinkButton


属性定义#Region "属性定义"
        '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
        < _
        Bindable(True), _
        Category("PageInfo"), _
        DefaultValue(""), _
        Description("设置页的信息(例如:当前 100 条记录...).") _
        > _
        Public Property PageInfoText()Property PageInfoText() As String
            Get
                EnsureChildControls()
                Return labPageInfo.Text
            End Get
            Set(ByVal value As String)
                EnsureChildControls()
                labPageInfo.Text = value
            End Set
        End Property

      &n