Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Display multiple record in 1 page

Display multiple record in 1 page

Scheduled Pinned Locked Moved ASP.NET
questiondatabasehelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rain1178
    wrote on last edited by
    #1

    Hi, I want to create a web page which will display multiple record (can be one or many). I want the record to be display like this: Record 1: Name : Alex Age : 23 Address : xxxxxxxxxxx Other : (Datagrid display data here) Record 2: Name: Alice (No datagrid display data here coz no data for this person in database) Record 3: Name: Alicia Age:24 Other : (Datagrid display data here) Notice that Name will be display in every record. If no data for age and address, then no need to display. My question is how to dynamically display data like above eventhought the number of record is not fix. How do i repeat to use the control? :confused:

    H 1 Reply Last reply
    0
    • R rain1178

      Hi, I want to create a web page which will display multiple record (can be one or many). I want the record to be display like this: Record 1: Name : Alex Age : 23 Address : xxxxxxxxxxx Other : (Datagrid display data here) Record 2: Name: Alice (No datagrid display data here coz no data for this person in database) Record 3: Name: Alicia Age:24 Other : (Datagrid display data here) Notice that Name will be display in every record. If no data for age and address, then no need to display. My question is how to dynamically display data like above eventhought the number of record is not fix. How do i repeat to use the control? :confused:

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Since this is the ASP.NET forum, here's an ASP.NET-related response. First, be sure to read the ASP.NET documentation in the .NET Framework SDK - you can't read far without seeing something about data-bound controls. Specifically, look at the DataList and DataGrid controls (using a templated column in the case of the latter). Because they are data-bound controls, you can pass them a DataSet, DataTable, or any other IEnumerable (or IListSource). You specify the template - they provide the repetition and, if you like, the paging for multi-page results (as well as editing capabilities).

      -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups