Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brunoocasali/pagination-.net
This is a simple WebUserControl to give to you a pagination of your data.
https://github.com/brunoocasali/pagination-.net
Last synced: about 23 hours ago
JSON representation
This is a simple WebUserControl to give to you a pagination of your data.
- Host: GitHub
- URL: https://github.com/brunoocasali/pagination-.net
- Owner: brunoocasali
- License: mit
- Created: 2014-08-12T12:41:59.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-10T19:08:08.000Z (over 9 years ago)
- Last Synced: 2023-08-13T01:57:17.419Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 305 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Pagination.NET
==============This is a simple WebUserControl to give to you a pagination of your data.
How to use:
1° First copy the `web.config` content to your `web.config` file:
```xml
```
2° Create a new web form called `something.aspx`3° Add this code to him ``
It maybe seems like this:
```asp
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Something.aspx.cs" Inherits="Something" %>Awesome html tables now!!
```
4° In the code behind you need to insert the code reference at your classes and methods.
It maybe seems like this either:```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;public partial class Something : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
uc.TotalPerPage = 20; //20 - 20, in other words, pages with 20 rows!
uc.Total = 1000; // Total of your list!
}
}
```And save and start your ISS server! :D
I'll be improve the code, so help me fork this repo!