How to create dropdown list in mvc please send me an example
Thank you
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Supreeth JRank #2,205 · 639 reputationPosted Sep 24, 2015, 1:32 AM EDT
Francis SusaimichaelRank #466 · 5.4K reputationPosted Sep 24, 2015, 1:40 AM EDT
List
items.Add(new SelectListItem { Text = "MyId1", Value = "MyId1", Selected = true });
items.Add(new SelectListItem { Text = "MyId2", Value = "MyId2" });
}
Munesh SharmaRank #174 · 13.9K reputationPosted Sep 24, 2015, 1:49 AM EDT
abhi lash108 reputationPosted Sep 24, 2015, 3:18 AM EDT
Francis SusaimichaelRank #466 · 5.4K reputationPosted Sep 24, 2015, 3:28 AM EDT
abhi lash108 reputationPosted Sep 24, 2015, 4:10 AM EDT