Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to fill model enum with bradio button asp razor

@{var numList = Enum.GetValues(typeof(Models.numbers));}
@foreach (object radiotext in numList)
{
    @Html.RadioButton("radioname", radiotext.ToString())@radiotext.ToString()
}
Source by forums.asp.net #
 
PREVIOUS NEXT
Tagged: #fill #model #enum #bradio #button #asp #razor
ADD COMMENT
Topic
Name
3+9 =