Wednesday, October 20, 2010

MVC2 Drop down list

In order to set static value of MVC2 drop down list use below code

binded with entity field
Html.DropDownListFor(model => model.Type, new SelectList(new[] { "JobCatagories","SalaryRange" }))

intendant of entity matching.

Html.DropDownList("DDL", new SelectList(new[] { "JobCatagories", "SalaryRange" }))





 How to generate Model class and DbContext from existing Data Base using .NET Core  Open the Nuget Manage and run the following command Scaf...