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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. help me in show data with list control

help me in show data with list control

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

    I had 2 table: Category and ChildCategory in the database. Category(CategoryID, Name) ChildCategory(ChildCategoryID,Name,CategoryID) I want to show data like: Web Program (Category) ---- ASP (ChildCategory of this Category) ---- PHP (ChildCategory of this Category) ---- JSP (ChildCategory of this Category) Web Design (Category) ---- Photoshop (ChildCategory of this Category) ---- Illustrator (ChildCategory of this Category) ---- Dreamweaver (ChildCategory of this Category) Please help me to show this data with any control list(datagrid, datalist, or repeater). Thanks.

    M 1 Reply Last reply
    0
    • C cool_man

      I had 2 table: Category and ChildCategory in the database. Category(CategoryID, Name) ChildCategory(ChildCategoryID,Name,CategoryID) I want to show data like: Web Program (Category) ---- ASP (ChildCategory of this Category) ---- PHP (ChildCategory of this Category) ---- JSP (ChildCategory of this Category) Web Design (Category) ---- Photoshop (ChildCategory of this Category) ---- Illustrator (ChildCategory of this Category) ---- Dreamweaver (ChildCategory of this Category) Please help me to show this data with any control list(datagrid, datalist, or repeater). Thanks.

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      This is ASP.NET forum.. So what is ASP,PHP....? ASP.NET way: in the Load event: if(!Page.IsPostBack) { SqlConnection con = new SqlConnection("...."); SqlDataAdapter adapter = new SqlDataAdater("SELECT * FROM....",Conn); DataSet ds = new DataSet(); adapter.Fill(ds,"Tablename"); datagrid.DataSource = ds.Tables["tablename"]; } Mazy No sig. available now.

      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