Click here to Skip to main content
15,913,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all experts,

i have 1 dropdownlist for display product infor. normally, this dropdownlist displays only product name and some of my product have similar name. so i want to display both product code and product name in that dropdownlist.
Does anybody know how to do like that in MVC?

Thanks

TONY
Posted
Comments
Anh Nguyen Trong 18-Aug-13 22:43pm    
Let see and try:
http://stackoverflow.com/questions/16845037/reusing-same-dropdownlist-for-multiple-fields-and-populating-with-db-value-mvc4

and

http://stackoverflow.com/questions/15688074/binding-a-dropdownlist-in-the-view-to-a-column-in-table-using-asp-net-mvc4
AMIT AGRAWAL57 19-Aug-13 6:07am    
bind text value with name and code then render drop down list.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900