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. nested repeater controls

nested repeater controls

Scheduled Pinned Locked Moved ASP.NET
databasehelptutorial
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.
  • J Offline
    J Offline
    jaimecavazos
    wrote on last edited by
    #1

    I'm trying to do a nested Repeater where I have two tables, one is my region and second is the projects table. There's a foreign key in the projects table for region. I am doing an inner join in my stored procedure and I need the data to be displayed like this: Region 1 strDate strTitle strContent strDate strTitle strContent strDate strTitle strContent Region 2 strDate strTitle strContent strDate strTitle strContent strDate strTitle strContent Region 3 strDate strTitle strContent strDate strTitle strContent strDate strTitle strContent Not like this: Region 1 strDate strTitle strContent Region 1 strDate strTitle strContent Region 1 strDate strTitle strContent Region 2 strDate strTitle strContent Region 2 strDate strTitle strContent Region 2 strDate strTitle strContent The problem is that all the samples build the relation in the code behind, where as mine is done in the stored procedure doing a inner join. If someone could show me how to do this I would really appreciate it!!! Thanks, Jaime

    M 1 Reply Last reply
    0
    • J jaimecavazos

      I'm trying to do a nested Repeater where I have two tables, one is my region and second is the projects table. There's a foreign key in the projects table for region. I am doing an inner join in my stored procedure and I need the data to be displayed like this: Region 1 strDate strTitle strContent strDate strTitle strContent strDate strTitle strContent Region 2 strDate strTitle strContent strDate strTitle strContent strDate strTitle strContent Region 3 strDate strTitle strContent strDate strTitle strContent strDate strTitle strContent Not like this: Region 1 strDate strTitle strContent Region 1 strDate strTitle strContent Region 1 strDate strTitle strContent Region 2 strDate strTitle strContent Region 2 strDate strTitle strContent Region 2 strDate strTitle strContent The problem is that all the samples build the relation in the code behind, where as mine is done in the stored procedure doing a inner join. If someone could show me how to do this I would really appreciate it!!! Thanks, Jaime

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Hi Jaime. I'm guessing that you'd want to set up the relation in the code-behind, and have your stored procedure return two recordsets (one for the master records, one for the detail, with the key field relating them). Otherwise, the only way I can see of handling what you're describing is to: 1) not use Repeater controls and render it all through your own code; 2) maybe handle the ItemCreated event for the repeater and provide your own code for determining if display controls should be made visible/invisible based on the DataItem of the event args.

      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