1 Attachment(s)
[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!
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
Re: DataList not showing any values
That's ideal, thanks - I knew it would be something simple!