Home > Net >  C # ASP.NET read the database record number, according to record number in the WEB screen from left
C # ASP.NET read the database record number, according to record number in the WEB screen from left

Time:10-13


1, I want to read the database record number, if there are five record number, is on the WEB picture from left to right, from top to bottom evenly arranged five ICONS,
If there are 10 record number, is on the WEB picture from left to right, from top to bottom evenly arranged 10 ICONS,

2, and then according to the value of a field, in the database value is 1, the icon shows red (failure)
Value is 0, the icon shows green (normal)

3, then click on the icon, can be listed separately detailed fault information (fault information obtained from the database of other fields),

CodePudding user response:

Data displayed in the gridview, add one column is the icon, icon binding column data ID, click the icon listed according to the ID query the database, this school
  •  Tags:  
  • C#
  • Related