public class DropDownListViewModel
{
public SelectList Items { get; set; }
[Required(ErrorMessage = "Please select a value from the list")]
public T SelectedValue { set; get; }
}
??
public class DropDownListViewModel
{
public SelectList Items { get; set; }
[Required(ErrorMessage = "Please select a value from the list")]
public T SelectedValue { set; get; }
}
??
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Nov 16, 2021, 5:42 AM EST
Mithun Pradhan194 reputationPosted Nov 18, 2021, 2:00 AM EST
asp-for=""
try to showing
Mandatory field Uploader
validation not working after button click