Custom paging display based on asp.net

Source: Internet
Author: User
Absrtact: In this paper, for the display of Web database records, a custom paging display of database records using the DataGrid control in the ASP.net framework is discussed with examples.
Keywords: web database; asp.net;datagrid; paging
Introduction
This is usually the case when a user makes a data query, and a database query returns too many rows, and consistency cannot be displayed on a single page. If a user is using a slow link, sending a particularly large data result can take a long time. Once the data has been obtained, the user may find that it does not contain the correct content, or the scope of the query is too large, there is no easy way to check all the results to find important information. Therefore, the paging display of query results will provide great convenience for the user to manage the data query. Paging display is a very common way to browse and display large amounts of data. is one of the most frequently handled events in Web programming, and now the site basically provides paging display information, but most of it is based on ASP, and the. NET Platform framework is designed for a wide variety of Web applications, Therefore, this paper discusses a method of implementing the custom paging display of query records under the ASP.net framework.
asp.net
. NET simplifies the process of accessing and storing information by means of a flat data description (through XML) and a common access media Internet.
Asp. NET is the core element of the Microsoft.NET framework, a powerful server-based technology that enables you to create dynamically interactive HTML pages for the WWW site or intranet. ASP.net is completely based on modules and components, and is well scalable and customizable. It mainly includes two programming modes of WebForm and WebService. The former provides users with powerful, rich-looking form-based Web pages based on forms (form); the latter provides a programming interface for accessing remote services, linking remote devices, and interacting remote applications in heterogeneous network environments through support for Internet standards such as HTTP, XML, SOAP, and WSDL.
Linking through ado.net, manipulating data sources
Since Microsoft launched the Open Database Interconnection (ODBC) Application Programming Interface (API), a variety of database access technologies have emerged, and the API can be processed in real time until ado.net occurs. Ado. NET is a technology that asp.net applications use to communicate with databases, allowing you to interact with relational databases and other data sources. Disconnected access is the most important feature of Ado.net and is the biggest change to ADO. Ado. NET creates a link to the database that populates the dataset with a copy of the information extracted from the database. If you change the information in the dataset, the information in the corresponding table in the database will not change. When needed, you can connect the dataset back to the original data source and apply all the changes.
Ado. NET relies primarily on the functionality of the following core objects. They are grouped into two groups: a set of objects for storing and managing data (for example: Datatable,datarow and DataRelation), and another set of objects to link to a particular data source (for example: connections, Commands and DataReader classes)

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.