J
Jeff
hey
asp.net 2.0
I'm trying to specify a template column for my GridView, but I get a compile
error:
Validation (XHTML 1.0 Transitional): Element 'itemtemplate' is not
supported.
<columns>
<asp:ButtonField headertext="Occupation" commandname="Occupation"
datatextfield="Occupation" />
<asp:ButtonField headertext="Country" commandcame="Country" />
<asp:templatefield headertext="User Name">
<itemtemplate>
<asp:label id="firstname" text='<%# Eval("FirstName") %>'
runat="server" />
<asp:label id="lastname" text='<%# Eval("LastName") %>' runat="server"
/>
</itemtemplate>
</asp:templatefield>
</columns>
Any suggestions?
asp.net 2.0
I'm trying to specify a template column for my GridView, but I get a compile
error:
Validation (XHTML 1.0 Transitional): Element 'itemtemplate' is not
supported.
<columns>
<asp:ButtonField headertext="Occupation" commandname="Occupation"
datatextfield="Occupation" />
<asp:ButtonField headertext="Country" commandcame="Country" />
<asp:templatefield headertext="User Name">
<itemtemplate>
<asp:label id="firstname" text='<%# Eval("FirstName") %>'
runat="server" />
<asp:label id="lastname" text='<%# Eval("LastName") %>' runat="server"
/>
</itemtemplate>
</asp:templatefield>
</columns>
Any suggestions?