Answers for "razor dropdownlistfor"

C#
-1

razor dropdownlistfor

@using MyMVCApp.Models

@model Student

@Html.DropDownListFor(m => m.StudentGender, 
            new SelectList(Enum.GetValues(typeof(Gender))), 
            "Select Gender")
Posted by: Guest on November-04-2020

C# Answers by Framework

Browse Popular Code Answers by Language