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. How to Dispaly Records on runtime.

How to Dispaly Records on runtime.

Scheduled Pinned Locked Moved ASP.NET
javadatabasecomtutorial
7 Posts 4 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
    raushan_9
    wrote on last edited by
    #1

    Hello...... I want to display record in datalist from database on runtime. just like as displayed in Featured Projects and SpotlightAgentsin www.magicbricks.com[^]

    E P L 3 Replies Last reply
    0
    • R raushan_9

      Hello...... I want to display record in datalist from database on runtime. just like as displayed in Featured Projects and SpotlightAgentsin www.magicbricks.com[^]

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      try searching google for the answer there are plenty of examples of displaying data in a datalist from a database

      R 1 Reply Last reply
      0
      • R raushan_9

        Hello...... I want to display record in datalist from database on runtime. just like as displayed in Featured Projects and SpotlightAgentsin www.magicbricks.com[^]

        P Offline
        P Offline
        pmartike
        wrote on last edited by
        #3

        I think you have to create and populate a gridview , a datatable or a simple HTML table on Button_click event. You will find a lot of examples on the internet ;)

        -------------------------------- visit: http://pmartike.deviantart.com/

        1 Reply Last reply
        0
        • E eyeseetee

          try searching google for the answer there are plenty of examples of displaying data in a datalist from a database

          R Offline
          R Offline
          raushan_9
          wrote on last edited by
          #4

          hi.. I have allready searched in google... so if u can give more details about this .. then give....

          1 Reply Last reply
          0
          • R raushan_9

            Hello...... I want to display record in datalist from database on runtime. just like as displayed in Featured Projects and SpotlightAgentsin www.magicbricks.com[^]

            L Offline
            L Offline
            lbothell
            wrote on last edited by
            #5

            Hallo. I'm not sure exactly what you mean from the examples you suggested, since for Featured Agens some opened into a consistent format based on MagicBricks styles and others onto their own websites. If I'm getting you correctly, here's a really simple way I'd activate a datalist (which you've already styled to look the way you want) Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If IsPostBack = False Then yourSubHere() End If End Sub yourSubHere() Using conn As New SqlConnection(as whatever) Dim cmd As New SqlCommand("storedProcNameSelectingDatabaseContents", conn) cmd.CommandType = Data.CommandType.StoredProcedure conn.Open() Using dr As SqlDataReader = cmd.ExecuteReader datalistname.DataSource = dr datalistname.DataBind() datalistname.Visible = True End Using End Using End Sub Just a thought.:cool:

            _________________________________________________ Have a great day!!! -- L.J.

            R 1 Reply Last reply
            0
            • L lbothell

              Hallo. I'm not sure exactly what you mean from the examples you suggested, since for Featured Agens some opened into a consistent format based on MagicBricks styles and others onto their own websites. If I'm getting you correctly, here's a really simple way I'd activate a datalist (which you've already styled to look the way you want) Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If IsPostBack = False Then yourSubHere() End If End Sub yourSubHere() Using conn As New SqlConnection(as whatever) Dim cmd As New SqlCommand("storedProcNameSelectingDatabaseContents", conn) cmd.CommandType = Data.CommandType.StoredProcedure conn.Open() Using dr As SqlDataReader = cmd.ExecuteReader datalistname.DataSource = dr datalistname.DataBind() datalistname.Visible = True End Using End Using End Sub Just a thought.:cool:

              _________________________________________________ Have a great day!!! -- L.J.

              R Offline
              R Offline
              raushan_9
              wrote on last edited by
              #6

              actually i want to show data in datalist in table... i have not predefined table row in Datalist... its also create in runtime. and you can see http://www.magicbricks.com/property/faces/jsp/indexc.jsp[^] of featured project... In this article they show City name on runtime and then city's Content.it's not predefined how much City can have and how much content of city can add. and i havenot predefined city. and city's content. so how can i display this type of data in datalist at runtime..

              L 1 Reply Last reply
              0
              • R raushan_9

                actually i want to show data in datalist in table... i have not predefined table row in Datalist... its also create in runtime. and you can see http://www.magicbricks.com/property/faces/jsp/indexc.jsp[^] of featured project... In this article they show City name on runtime and then city's Content.it's not predefined how much City can have and how much content of city can add. and i havenot predefined city. and city's content. so how can i display this type of data in datalist at runtime..

                L Offline
                L Offline
                lbothell
                wrote on last edited by
                #7

                My apologies - I'm not quite getting your question but it does seem beyond my current experience. . .

                _________________________________________________ Have a great day!!! -- L.J.

                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