Monday, 4 September 2017

Strongly typed binding to a DropDownListFor In MVC


Bind dropdown in MVC.

Using Strong Type:

Step1: Prepare Your model Like below





The code in your controller will look like this:





In the view you can use it like this:



MVC Contents


  1. Getting Started with ASP.NET MVC
  2. Working with Database
  3. Working with Validation
  4. DB First Approach - Entity Framework
  5. Code First Approach - Entity Framework
  6. ASP.NET SignalR