Visual Basic .NET » Visual Basic .NET General Discussion
GridView Not Working - NO DATA -- dba123 --


I'm about to pull my hair out. I cannot get the stupid GridView to show data. I have no choice but to post all my code below:

http://www.webfound.net/webconfig.txt 


can anyone help!! I'm going to go crazy. ;)

-- Laresuco --


In the GridView
<ItemTemplate>
<asp:Label runat="server" id="lblURLString" Text='<%# Bind("URLString")
%>' />
</ItemTemplate>

try

<ItemTemplate>
<asp:Label runat="server" id="lblURLString" Text='<%# Eval("URLString")
%>' />
</ItemTemplate>

And one advice: you don't have to check if the DataSet is empty, and the property of the GridView, EmptyDataText , so the text of the property will display is the datasource is empty.

-- BradleyPeter --

Firstly, is the returned DataSet pointing to anything?

Secondly, if it is pointing to anything, does that anything contain any data?

And BTW, you don't need to close the connection. If you're using a DataAdapter, the connection is closed automatically when the adaptor is filled.

Peter

-----Original Message-----
From: DotNetDevelopment on behalf of dba123 Sent: Mon 7/17/2006 4:44 PM To: DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting Cc:
Subject:
GridView Not Working - NO DATA
I'm about to pull my hair out. I cannot get the stupid GridView to show data. I have no choice but to post all my code below:

http://www.webfound.net/webconfig.txt 


can anyone help!! I'm going to go crazy. ;)



[Submit Comment]Home