ASP.NET MVC > View - Form specific

Listbox in razor view in ASP.NET MVC

How to create a list box in razor view?


Creating ListBox is similar to DropDownList except that instead of using @Html.DropDownList, we use @Html.ListBox or @Html.ListBoxFor. Remaining all other approaches to populate items in the ListBox is same as DropDownList. 

Read how to create DropDownList here and follow the same approach.

 Views: 4512 | Post Order: 31



Write for us