ControlPager.GetPage(Int32) 方法

定义

返回根据控件权重新分配的页索引。Returns a newly assigned page index based on the weight of the control. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 int GetPage(int weight);
public int GetPage (int weight);
member this.GetPage : int -> int
Public Function GetPage (weight As Integer) As Integer

参数

weight
Int32

控件的权重。The weight of a control.

返回

Int32

根据控件权重最新分配的页索引。A newly assigned page index based on the weight of the control.

注解

控件在分页过程中以迭代方式调用此方法以检索其分配的页面。Controls call this method iteratively during pagination to retrieve their assigned pages.

适用于