Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
5
Reply
Get id of selected dropdownlist text
Akash Patil
Aug 30 2016 3:00 AM
227
Reply
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");
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
how can i pass a string variable in json
Create Web Api without using Entity framework