App_Code/Controls/Pager.cs
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//===============================================================================================
//
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.
//
//===============================================================================================
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Reflection;
using System.Web.UI.Design;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
namespace MyWebPagesStarterKit.Controls
{
[ToolboxData("<{0}:Pager runat=server></{0}:Pager>")]
public class Pager : WebControl, INamingContainer
{
private ITemplate _separatorTemplate;
private Control _controlToPage;
private string _controlToPageName;
private PagedDataSource _pagedDataSource;
private int _pageSize;
private string _firstImageUrl;
private string _previousImageUrl;
private string _nextImageUrl;
private string _lastImageUrl;
private PagerMode _mode;
private bool _showPageNumbers;
private Table _table;
public Pager()
{
_pageSize = 20;
_firstImageUrl = string.Empty;
_previousImageUrl = string.Empty;
_nextImageUrl = string.Empty;
_lastImageUrl = string.Empty;
_mode = PagerMode.FirstPreviousNextLast;
_showPageNumbers = true;
_table = new Table();
}
[Browsable(false), PersistenceMode(PersistenceMode.InnerProperty)]
public ITemplate SeparatorTemplate
{
get { return _separatorTemplate; }
set { _separatorTemplate = value; }
后面还有 307 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
