I need your help!
I have a list of image names stored in a database, along with the id of the property they are associated with. I'd like to be able to display all of the images in a gridview and then allow the user to select the required image.
The problem I'm having is that the gridview is not displaying. I'm pretty sure it's something basic that I've missed, but can't for the life of me see what it is!
Any help would be greatly appreciated!
My gridview code in my aspx page:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
My code behind (propId is the property id):
query = "SELECT id, filepath "
+ "FROM images "
+ "WHERE id = ?id";
MySql.Data.MySqlClient.MySqlCommand command = new MySql.Data.MySqlClient.MySqlCommand();
command.CommandText = query;
command.Connection = MyConn;
MySql.Data.MySqlClient.MySqlDataAdapter da = new MySql.Data.MySqlClient.MySqlDataAdapter();
da.SelectCommand = command;
DataSet ds = new DataSe
View Complete Post