Results 1 to 3 of 3

Thread: [RESOLVED] DataList not showing any values

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    116

    Resolved [RESOLVED] DataList not showing any values

    Hi,

    I'm trying to access data from an Access database using ASP.NET with a DataList control. My database includes a table called 'Members' and attached is the code I am trying to display it with. The Response.Write statement half-way down the Page_Load event handler shows that there are 21 rows in the database, as there should be, but the DataList displays nothing - I just get a blank page with no errors. Looking at the HTML shows that the table, tr and td tags have been created.

    I'm at a loss... It's the first time I've tried to display data this way!
    Attached Files Attached Files
    Last edited by olamm2k; Jan 25th, 2006 at 07:24 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: DataList not showing any values

    That's because your datalist control itself is empty. The dataset has nothing to bind to.

    Have a look here for examples on what it should look like:

    http://samples.gotdotnet.com/quickst...bdatalist.aspx

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    116

    Re: DataList not showing any values

    That's ideal, thanks - I knew it would be something simple!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width