F
ForYourConsternation
The page on MSDN with the same title as this post seems to imply that
Eval can be replaced with Bind for the same result on a two-way DB
connection, but it generates the error: The name 'Bind' does not exist
in the current context. Am I just missing something obvious?
Here is the relevant code from the MSDN page (my goal is to replace
Eval with Bind):
<EditItemTemplate>
<aspropDownList ID="DropDownList2"
runat="server" DataSourceID="SqlDataSource2"
DataTextField="Name"
DataValueField="EmployeeID" SelectedValue='<%#
GetReportsTo(Eval("ReportsTo")) %>' AppendDataBoundItems="True">
<asp:ListItem Selected="True"
Value="0">(none)</asp:ListItem>
</aspropDownList>
</EditItemTemplate>
And the link to the page:
http://msdn2.microsoft.com/en-us/library/ms366709(VS.80).aspx
Thanks for any advice...
Eval can be replaced with Bind for the same result on a two-way DB
connection, but it generates the error: The name 'Bind' does not exist
in the current context. Am I just missing something obvious?
Here is the relevant code from the MSDN page (my goal is to replace
Eval with Bind):
<EditItemTemplate>
<aspropDownList ID="DropDownList2"
runat="server" DataSourceID="SqlDataSource2"
DataTextField="Name"
DataValueField="EmployeeID" SelectedValue='<%#
GetReportsTo(Eval("ReportsTo")) %>' AppendDataBoundItems="True">
<asp:ListItem Selected="True"
Value="0">(none)</asp:ListItem>
</aspropDownList>
</EditItemTemplate>
And the link to the page:
http://msdn2.microsoft.com/en-us/library/ms366709(VS.80).aspx
Thanks for any advice...