This is my code now, it displays all emails from my database but the begin value of my dropdown should be nothing.
<div class="col-sm-10">
<select asp-for="client.Email" name="client.Email" id="client.Email">
<br />
@foreach (var res in clientRepository.GetAllClients())
{
<option value=@res.Email>@res.Email .@res.Email</option>
}
</select>
<span asp-validation-for="client.Email" class="text-danger"></span>
</div>
</div>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…