I am not sure what I am doing wrong. I am trying to display the images on the page, it will display the url but not the image. I tried both as a template field and also as an imagefield. With Firebug I can see the value of the image source.
aspx page:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ImageID" DataSourceID="Images">
<Columns>
<asp:BoundField DataField="ImageID" HeaderText="ImageID" InsertVisible="False" ReadOnly="True" SortExpression="ImageID" />
<asp:BoundField DataField="InciID" HeaderText="InciID" SortExpression="InciID" />
<asp:TemplateField HeaderText="Imagepath" SortExpression="Imagepath">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Imagepath") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:image runat="server" ID="Label1" ImageUrl='<%# Bind("Imagepath") %>'></asp:image>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="ImageDescription" HeaderText="ImageDescription" SortExpression="ImageDescription" />
<asp:BoundField DataField="Category" HeaderText="Category" SortExpression="Category" />
<asp:ImageField DataImageUrlField="Imagepath">
<ControlStyle Height="100px" Width="100px" />
</asp:ImageField>
</Columns>
</asp:GridView>
Source code of the webpage from Firebug:
<td><img id="ctl00_ContentPlaceHolder1_GridView1_ctl15_Label1" src="images\curiouskids.jpg"></td>
<td><img style="height:100px;width:100px;" src="images\curiouskids.jpg"></td>