Mvcpager Source Code-pageroptions.cs

Source: Internet
Author: User
Tags tag name

public class Pageroptions
{
Public Pageroptions ()
{
AutoHide = true;
Pageindexparametername = "PageIndex";
Numericpageritemcount = 10;
Alwaysshowfirstlastpagenumber = false;
Showprevnext = true;
Prevpagetext = "Previous page";
NextPageText = "Next page";
Shownumericpageritems = true;
Showfirstlast = true;
Firstpagetext = "Home";
Lastpagetext = "Last";
Showmorepageritems = true;
Morepagetext = "...";
Showdisabledpageritems = true;
separatorhtml = "";
Usejqueryajax = false;
Showpageindexbox = false;
Showgobutton = true;
Pageindexboxtype = Pageindexboxtype.textbox;
Maximumpageindexitems = 80;
Gobuttontext = "Jump";
Containertagname = "DIV";
invalidpageindexerrormessage = "page index is invalid";
pageindexoutofrangeerrormessage = "Page index out of range";
Maxpageindex = 0;
}

<summary>
Whether the total number of pages is automatically hidden when there is only one page
</summary>
public bool AutoHide {get; set;}

<summary>
Error message displayed when page index is out of range
</summary>
public string Pageindexoutofrangeerrormessage {get; set;}

<summary>
Error message displayed when page index is invalid
</summary>
public string Invalidpageindexerrormessage {get; set;}

<summary>
Name of the page index parameter in the URL
</summary>
public string Pageindexparametername {get; set;}

<summary>
Whether to show page index input out selection box
</summary>
public bool Showpageindexbox {get; set;}

<summary>
The type of page index input or selection box
</summary>
Public Pageindexboxtype Pageindexboxtype {get; set;}

<summary>
The maximum number of page index bars displayed in the page Index drop-down box, which is valid only if Pageindexboxtype is set to Pageindexboxtype.dropdownlist
</summary>
public int Maximumpageindexitems {get; set;}

<summary>
Whether to show the jump button
</summary>
public bool Showgobutton {get; set;}

<summary>
Text on the Jump button
</summary>
public string Gobuttontext {get; set;}

<summary>
Numeric page index format string
</summary>
public string pagenumberformatstring {get; set;}
<summary>
Current page index format string
</summary>
public string currentpagenumberformatstring {get; set;}

private string _containertagname;
<summary>
Pagination control HTML container tag name, default Div
</summary>
public string Containertagname
{
Get
{
return _containertagname;
}
Set
{
if (string. IsNullOrEmpty (value))
throw new System.ArgumentException ("Containertagname cannot be null or an empty string", "Containertagname");
_containertagname = value;
}
}

<summary>
HTML text Format strings that contain digital pages, current pages, and top, bottom, front, and back page elements
</summary>
public string pageritemwrapperformatstring {get; set;}

<summary>
HTML text format string that contains page index pagination elements
</summary>
public string numericpageritemwrapperformatstring {get; set;}

<summary>
HTML text format string containing the current page pagination element
</summary>
public string currentpageritemwrapperformatstring {get; set;}

<summary>
HTML text format string containing four pagination elements on the page, next page, first and last
</summary>
public string navigationpageritemwrapperformatstring {get; set;}

<summary>
HTML text Format strings that contain more page pagination elements
</summary>
public string morepageritemwrapperformatstring {get; set;}

<summary>
An HTML text format string containing the page index input or selection box
</summary>
public string pageindexboxwrapperformatstring {get; set;}

<summary>
An HTML text box string containing the page index box and the area of the jump button
</summary>
public string gotopagesectionwrapperformatstring {get; set;}

<summary>
Whether or not show first and last numeric page number
</summary>
public bool Alwaysshowfirstlastpagenumber {get; set;}
<summary>
Maximum number of page index buttons to display
</summary>
public int Numericpageritemcount {get; set;}
<summary>
Whether to display the previous page and the next page
</summary>
public bool Showprevnext {get; set;}
<summary>
Previous page text
</summary>
public string Prevpagetext {get; set;}
<summary>
Next page of text
</summary>
public string NextPageText {get; set;}
<summary>
Whether to display the Number page Index button and more page buttons
</summary>
public bool Shownumericpageritems {get; set;}
<summary>
Whether to show the first page and the last page
</summary>
public bool Showfirstlast {get; set;}
<summary>
First page text
</summary>
public string Firstpagetext {get; set;}
<summary>
Last page of text
</summary>
public string Lastpagetext {get; set;}
<summary>
Whether to show more page buttons
</summary>
public bool Showmorepageritems {get; set;}
<summary>
More Page button text
</summary>
public string Morepagetext {get; set;}
<summary>
The ID of the DIV tag that contains the paging control
</summary>
public string Id {get; set;}
<summary>
Horizontal alignment
</summary>
public string HorizontalAlign {get; set;}
<summary>
CSS style classes
</summary>
public string CssClass {get; set;}
<summary>
Whether or not show disabled navigation buttons
</summary>
public bool Showdisabledpageritems {get; set;}
<summary>
Seperating Item HTML
</summary>
public string separatorhtml {get; set;}

<summary>
Limit the maximum number of pages displayed, the default value is 0, which is the total number of pages calculated based on the total record count
</summary>
public int Maxpageindex {get; set;}
<summary>
Whether to use jquery for Ajax paging (internal use)
</summary>
internal BOOL Usejqueryajax {get; set;}
}

public enum Pageindexboxtype
{
textbox,//text Box input
DropDownList//drop-down box selection
}
}

Mvcpager Source Code-pageroptions.cs

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.