KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In a model of my ASP.NET MVC application I would like validate a textbox as required only if a specific checkbox is checked. Something like public bool retired {get, set}; [RequiredIf("retired",true)] public string retirementAge {get, set}; How can I do that? Thank you.
Tags (comma-separated)
Save Edits
Cancel