Introduction
This article shows how to use the dropdownlist helper in MVC applications.
Create an ASP.Net MVC 4 Web Application
Choose Internet Application
Figure 2 Internet Application
Add an EmployeeController
Figure 3 Add EmployeeController
Set up an Entity Framework
Figure 4 Entity Framework
Employeecontroller.cs
Adding View
Figure 7 Add View
Index.cshtml
Index1.cshtml
Index2.cshtml
The output of the application as in the following screenshot.
Summary
In this article we saw how to use a dropdownlist helper in MVC applications.Happy coding.