Asp. NET Paging component 0.1.0

Source: Internet
Author: User
Asp.net| page changes prior to the Ascx user component, adapted to the real meaning of components, for the production of asp.net in the dbgrid,dblist,repeater, such as custom paging, with the stored procedures, can provide efficient paging function.

Property:

Number: Total records;

PageSize: Display quantity per page;

CurrentPage: Current page number (read only)

Event:

Trigger pagechanged event when paging;

Demo Code:

public class WebForm1:System.Web.UI.Page
{
protected Aspcontrols.pageupdown PageUpDown2;

private void Page_Load (object sender, System.EventArgs e)
{
if (! Page.IsPostBack)
{
Pageupdown2.number = 300;
Pageupdown2.pagesize = 30;
}
}

private void Pageupdown1_pagechanged (object sender, System.EventArgs e)
{
Response.Write (Pageupdown2.currentpage);
}

Override protected void OnInit (EventArgs e)
{
This. Pageupdown2.pagechanged + = new AspControls.PageUpDown.PageEventHandler (this. pageupdown1_pagechanged);
This. Load + = new System.EventHandler (this. Page_Load);
}
}




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.