CODE
in .aspx
<asp:DataList ID="dlst1" runat="server" CellPadding="0" RepeatColumns="4" >
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# bind("celebrity") %>'></asp:Label>
<asp:ImageButton ID="imbtn1" runat="server" ImageUrl='<%# bind("imagename") %>' Height="75px" Width="75px" />
</ItemTemplate>
</asp:DataList>
in .aspx.cs
SqlDataAdapter ada = new SqlDataAdapter("select * from [tablename] where [condition], conn);
conn.Open();
DataSet ds = new DataSet();
ada.Fill(ds);
dlst1.DataSource = ds;
dlst1.DataBind();
hi,
i have stored images in a seperate folder in the website project and only image names with extension are stored in the database column. so plz tell me how to link the folder and database to retriew the images when the condition is satisfied.its urgent so plz reply me.