problem using DropDownList in EditItemTemplate

J

Jeff

hey

asp.net 2.0

I'm getting this error message:
DataBinding: 'CarDetail' does not contain a property with the name
'Description'.

<asp:DropDownList ID="ddlCarType" DataTextField='<%# Bind("'Description'")
%>'
DataValueField='<%# Bind("Id")%>' DataSourceID="dsdAvtaleType"
runat="server">
</asp:DropDownList>

Description is a property of CarTypeDetail.

The GridView is using an ObjectDataSource as datasource. the DropDownList is
using another ObjectDataSource as datasource..

In addition I'm wondering if the binding to the "Id" can make confusion as
both CarDetail and CarDetailType has that property

any suggestions what I do wrong here?

Jeff
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top