hi all,
i want to display names alphabetical order in dropdownlist from database using asp.net mvc5
this is my requiement
please give me soultion regarding this ...
please give me soultion regarding this ...
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
Puneet KankarRank #446 · 5.6K reputationPosted Aug 21, 2017, 4:43 AM EDT
Html.DropDownListFor(x => x.ID, new SelectList(Model.Fruit.OrderBy(y => y.Text), "Value", "Text"), "-- Select One --", new { @class = "form-control" })Ramesh PalanivelRank #372 · 6.8K reputationPosted Aug 21, 2017, 12:44 AM EDT
Rupesh KahaneRank #136 · 16.4K reputationPosted Aug 21, 2017, 1:38 AM EDT
Seshu BRank #3,253 · 440 reputationPosted Aug 21, 2017, 4:55 AM EDT