W
whyman
I have read several documents that use Imagefield and DataField in the
examples in Visual Studio 2005. I am new to Visual Studio, so I am going
through tutorials, and code I find from the internet. Code from Microsofts
site below.
<asp:GridView ID="GridView1"
DataSourceID="ProductsSource"
AutoGenerateColumns="false"
Runat="Server">
<Columns>
<asp:BoundField
DataField="LastName"
NullDisplayText="no value" />
<asp:ImageField HeaderText="" DataField="photo" />
</Columns>
</asp:GridView>
When I try to use the ImageField in this manner I receive an error.
(Validation (ASP.Net): Attribute 'DataField' is not a valid attribute of
element 'ImageField'.) I receive the same error from a detailsview as well.
Has this been taken out of ASP.NET 2.0 or am I missing somthing that I do not
understand?
Thank you for any help you can give
examples in Visual Studio 2005. I am new to Visual Studio, so I am going
through tutorials, and code I find from the internet. Code from Microsofts
site below.
<asp:GridView ID="GridView1"
DataSourceID="ProductsSource"
AutoGenerateColumns="false"
Runat="Server">
<Columns>
<asp:BoundField
DataField="LastName"
NullDisplayText="no value" />
<asp:ImageField HeaderText="" DataField="photo" />
</Columns>
</asp:GridView>
When I try to use the ImageField in this manner I receive an error.
(Validation (ASP.Net): Attribute 'DataField' is not a valid attribute of
element 'ImageField'.) I receive the same error from a detailsview as well.
Has this been taken out of ASP.NET 2.0 or am I missing somthing that I do not
understand?
Thank you for any help you can give