Web
Analytics
Populate DropDownList using Entity Framework in ASP.NET MVC using Razor - Tutorial

For Consultation : +91 9887575540

Stay Connected :

Step1: Create new MVC Project.

Step2 . Create Database Table . In this example I created a table “categories” which have three fields

CategoryId int primarykey

CategoryName varchar(50)

IsSelected bool




Step 3: Create connectionstring in web.config.

Step 4: Create Model Class “Category.cs”




Select your currency