Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

.net core enum select list

<div class="form-group">
    <label asp-for="MODELNAME" class="col-md-2 control-label"></label>
    <div class="col-md-10">
        <select asp-for="MODELNAME" asp-items="Html.GetEnumSelectList<MODELNAME>()">
            <option selected="selected" value="">Please select</option>
        </select>
        <span asp-validation-for="MODELNAME" class="text-danger" />
    </div>
</div>
Comment

PREVIOUS NEXT
Code Example
Csharp :: get working directory c# 
Csharp :: c# compile just one exe 
Csharp :: c# split a string and return list 
Csharp :: how to print c# 
Csharp :: entity framework update child records 
Csharp :: loop datagridview c# 
Csharp :: c# todictionary linq 
Csharp :: how to loop an animation in unity 
Csharp :: get hard disk serial number 
Csharp :: c# datagridview column size 
Csharp :: placeholder syntax c# 
Csharp :: convert from xls to xlsx C# 
Csharp :: debug c# console 
Csharp :: how to make font c# 
Csharp :: copy text from a text box c# 
Csharp :: how to change the axis of a Vector3 variable 
Csharp :: c# integer to bit string 
Csharp :: parse json array c# 
Csharp :: how to print using C# 
Csharp :: unity detect keyboard not mouse 
Csharp :: c# print multiplication table 
Csharp :: how to convert int to float in c# 
Csharp :: c# string to b64 
Csharp :: bitmap to imagesource c# 
Csharp :: response redirect new tab 
Csharp :: .net get system environment variable 
Csharp :: c# dictionary get value by key 
Csharp :: unity new vector3 
Csharp :: check if internet is connected with c# winforms 
Csharp :: how to get the transform of an object in unity 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =