Why this code doesn't working
I want to display images in a gridview images in the pictures/comps dir and named as 0.jpg,1.jpg,2.jpg
and ImagePath field is empty
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"
DataKeyNames="id" DataSourceID="SqlDataSource1"
EmptyDataText="There are no data records to display.">
<Columns>
<asp:ImageField DataImageUrlField="ImagePath"
DataImageUrlFormatString="~/pictures/comps/{0}.jpg">
</asp:ImageField>
<asp:BoundField DataField="id" HeaderText="id" ReadOnly="True"
SortExpression="id" />
<asp:BoundField DataField="Category" HeaderText="Category"
SortExpression="Category" />
<asp:BoundField DataField="ImageName" HeaderText="ImageName"
SortExpression="ImageName" />
< ...
Go to the complete details ...