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. Repeater Control and SQL DataBase

Repeater Control and SQL DataBase

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

    Hi, I need to set up a Repeater control that will display summary information on my Webform using C#. I have a stored procedure that selects the Tool_ID, Tool_Name, and Tool_Quantity based on the Category ID that is passed through the session. I need to show the returned information in columns as such: Tool Id ToolId ToolId Tool Name Tool Name Tool Name Tool Quantity Tool Quantity Tool Quantity Right now this is what I have in my .aspx file:

    Summary

    Tool ID: ]]> />
    Tool Quantity:

    C 1 Reply Last reply
    0
    • T Terick

      Hi, I need to set up a Repeater control that will display summary information on my Webform using C#. I have a stored procedure that selects the Tool_ID, Tool_Name, and Tool_Quantity based on the Category ID that is passed through the session. I need to show the returned information in columns as such: Tool Id ToolId ToolId Tool Name Tool Name Tool Name Tool Quantity Tool Quantity Tool Quantity Right now this is what I have in my .aspx file:

      Summary

      Tool ID: ]]> />
      Tool Quantity:

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I would suggest you need to use a pivot table, the best way to do this is to massage your data so it's in this format. If you can't do that, then a repeater is ideal, b/c what you can do is have the repeater creating columns in a table for each item of data.

      Christian Graus Driven to the arms of OSX by Vista.

      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