A
AG
Hi,
ASP.NET 2.0 web app
I have a GridView utilizing template columns and bound to an
objectdatasource.
In the edit template of one column there is a dropdownlist bound to another
objectdatasource.
The dropdownlist displays the appropriate values when entering edit mode.
However when I try to update, I receive the following error.
Databinding methods such as Eval(), XPath(), and Bind() can only be used in
the context of a databound control.
Here is the edititemtemplate
<EditItemTemplate>
<aspropDownList id="ddlNetDataType" runat="server" EnableViewState="False"
DataSourceID="odsNetDataTypes" SelectedValue='<%# Bind("NetDataType") %>'
DataTextField="NetDataType" DataValueField="NetDataType"></aspropDownList>
</EditItemTemplate>
Can anyone offer a fix?
TIA
AG
Email: discuss at adhdata dot com
ASP.NET 2.0 web app
I have a GridView utilizing template columns and bound to an
objectdatasource.
In the edit template of one column there is a dropdownlist bound to another
objectdatasource.
The dropdownlist displays the appropriate values when entering edit mode.
However when I try to update, I receive the following error.
Databinding methods such as Eval(), XPath(), and Bind() can only be used in
the context of a databound control.
Here is the edititemtemplate
<EditItemTemplate>
<aspropDownList id="ddlNetDataType" runat="server" EnableViewState="False"
DataSourceID="odsNetDataTypes" SelectedValue='<%# Bind("NetDataType") %>'
DataTextField="NetDataType" DataValueField="NetDataType"></aspropDownList>
</EditItemTemplate>
Can anyone offer a fix?
TIA
AG
Email: discuss at adhdata dot com