Hello experts,
I want to display id of selected text from dropdownlist,
I have below dropdownlist.it shows Name of the dealer but when i select any value from dropdown i want save the id of that value in to database.how can i get the id of selected value.
Please help
ViewBag.dealerList = new SelectList(db.tbl_Dealer.ToList(), "Id", "Name");

Vinay SinghRank #604 · 4K reputationPosted Aug 29, 2016, 11:08 PM EDT
PrakashRank #6,639 · 260 reputationPosted Aug 29, 2016, 11:21 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Aug 29, 2016, 11:26 PM EDT
PrakashRank #6,639 · 260 reputationPosted Aug 29, 2016, 11:31 PM EDT
PrakashRank #6,639 · 260 reputationPosted Aug 30, 2016, 12:22 AM EDT