#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2007
    Posts
    12
    Rep Power
    0

    Loop through records and display on page


    Hi,

    I am new in ASP.net. I have a website written in Classic ASP which I want to convert to ASP.net.

    I am working on a page that display list of properties along with Listing Id, Title, Price & Picture (Website Url: http://demo.irealtysolution.net/).

    In ASP.net how do I write the code that display properties as listed in the website above?




    Thanks!
    Zeeshan
  2. #2
  3. ASP.Net MVP
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Aug 2003
    Location
    WI
    Posts
    4,378
    Rep Power
    1510
    In ASP.Net, you don't "loop through records and display on the page" at all. You use grid controls, such that you set up a template for each record, and then bind your data to the control.
    Primary Forum: .Net Development
    Holy cow, I'm now an ASP.Net MVP!

    [Moving to ASP.Net] | [.Net Dos and Don't for VB6 Programmers]

    http://twitter.com/jcoehoorn

IMN logo majestic logo threadwatch logo seochat tools logo