利用插件整理代码,排序和移除不需要的引用。小心.Net2/.Net4的兼容问题
nnhy authored at 2012-12-08 10:14:21
1.18 KiB
X
using System;
using System.ComponentModel;
using System.Security.Permissions;
using System.Web;
using System.Web.UI;

namespace XControl
{
    /// <summary>分页模版项</summary>
    [ToolboxItem(false)]
    [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
    public class DataPagerItem : Control, IDataItemContainer, INamingContainer
    {
        private Object _DataItem;
        /// <summary>数据项</summary>
        public Object DataItem
        {
            get { return _DataItem; }
            set { _DataItem = value; }
        }

        private Int32 _DataItemIndex;
        /// <summary>数据索引</summary>
        public Int32 DataItemIndex
        {
            get { return _DataItemIndex; }
            set { _DataItemIndex = value; }
        }

        private Int32 _DisplayIndex;
        /// <summary>显示索引</summary>
        public Int32 DisplayIndex
        {
            get { return _DisplayIndex; }
            set { _DisplayIndex = value; }
        }
    }
}