dropdownlist databinding

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-06-07T11:48:28Z Indexed on 2010/06/07 11:52 UTC
Read the original article Hit count: 145

Filed under:
|
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

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET