c# - Alphabetically Ordering a SelectList in MVC -


similar example

problem selectlist might have data(plus it's format [ford iv 200 xyx]) in want retire(by displaying records has bit value of true in it's 3rd column need figure out how do), big problem if user adds in ford display way @ bottom of drop down messy , overlooked ideas?

p.s. added jquery tags in case possible solution since able use in project.

edit - 3rd column bit value filter here's solution

you use orderby extension method:

<%: html.dropdownlistfor(     x => x.modelid,      new selectlist(model.vehiclemodels.orderby(x => x.name), "id", "name"),      "-- select model --" ) %> 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -