Web
Analytics
How to get DropDownList selected Text in MVC controller | code first - Tutorial

For Consultation : +91 9887575540

Stay Connected :

As we know that whenever we want to pass dropdown text from view to controller using the model object, the value of dropdown is transferred but in some cases, we required text of the drop-down.

in this article I discuss that how we can perform this.

Step1: Create New ASP.NET MVC empty project.

Step2.:  now we will create data context and Employee model using ado.net entity data model code first approach.

Employee.cs:

Model1





Step2:  create a new controller and add index action, add view using create scaffolding.

Index.cshtml

 



OutPut:

get dropdown selected text at MVC controller

Select your currency