problem using Image in a GridView

J

Jeff

Hi

asp.net .20

the markup below gives me compile error:
- Element 'Image' is not a known element
- Type 'System.Web.UI.WebControls.TemplateField' does not have a public
property named 'Image'
- Content ('</asp:Image>') does not match any properties within a
'System.Web.UI.WebControls.TemplateField'

<asp:GridView ID="gvwPhotos" runat="server"
AutoGenerateColumns="false"
OnRowDataBound="gvwPhotos_RowDataBound">
<Columns>
<asp:TemplateField >
<asp:Image id="image1" runat="server"></asp:Image>
</asp:TemplateField>
</Columns>
</asp:GridView>

any ideas what I do wrong here?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top