Created
December 3, 2019 20:53
-
-
Save gavilanch/8e5af93f42890f895785abf75d3622e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form-group"> | |
<label>Country:</label> | |
<div> | |
<InputSelectNumber class="form-control" | |
ValueChanged="@((int value) => CountryHasChanged(value))" | |
ValueExpression="@(() => countryId)" | |
Value="@countryId"> | |
<option value="0">--Select a country--</option> | |
@foreach (var item in Countries) | |
{ | |
@if (item.Id == countryId) | |
{ | |
<option selected value="@item.Id">@item.Name</option> | |
} | |
else | |
{ | |
<option value="@item.Id">@item.Name</option> | |
} | |
} | |
</InputSelectNumber> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment