<asp:ImageButton ID="Imagebtn" runat="server" ImageUrl=retriveurl('<%# Eval("id") %>') CommandName="viewalbum" CommandArgument='<%# Eval("id") %>' />
<asp:Label ID="product_nameLabel" runat="server"
Text='<%# Eval("product_name") %>' />
i want to set image url from another database table using Eval("id").query can return several row.but i want to set the last url from datareader.
If you want to bind the last url from dataTable you can customize your datasource by calling a separate method which would return you the required url and then the updated datasouce can be binded.