Dynamically bind data to Html Table and dynamically bind htmltable

Source: Internet
Author: User

Dynamically bind data to Html Table and dynamically bind htmltable

Learning or developing asp.net programs. If you do not like to use the GridView, DataList, or Repeater controls to display data from databases, you can use html tables.
Today, Insus. NET also allows you to dynamically generate table headers and data rows.

Asp.net has a control asp: Literal, which can render html code.

OK. Now you can layout your display layout on the aspx webpage:

 

Let's see how the table header and data row of. aspx. cs are generated?


Demo:



You can expand development, such as dynamically generating headers, merging, and vertical or horizontal merging of data rows.


Net dynamically queries million data, dynamically generates a table, and then binds the data to the table. It takes 3 seconds for me to increase the speed.

The bound Table has pages, right? In this case, the optimization is nothing more than your SQL query statement. The paging storage process is better, and there are basically not many points that can be optimized in the program.

Data Binding to aspnet table

I can solve this problem for you, because I just made a similar problem in the project. To help you solve the problem as soon as possible, you should tell me more information.
In the middle, self-introduction and self-introduction are its sub-items, all of which are dynamic




Related Article

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.