dropdownlist databinding
- by Jack
Restaurants Menus Products
RestaurantID MenuID ProductID
RestaurantName MenuName ProductName
RestaurantID MenuID
<asp:DropDownList ID="DropDownList8" runat="server" DataSourceID="ObjectDataSource3"
SelectedValue='<%# Bind("MenuID") %>' Field="RestaurantName" DataValueField="RestaurantID">
Gridview has GetAllProducts method
ObjectDataSource3 has method GetAllRestaurants.
I want to edit and update Menus of each Product. But I want to show RestaurantName indtead of MenuID..
Thanks