Remove client-side validation
asp.net-mvc
Solution
If you just want to disable validation for a single field in client side then you can override the validation attributes as follows:
@Html.TexBoxFor(model => model.SomeValue,
new Dictionary<string, object> { { "data-val", false }})
Here is the source for more answers
Problem
Assuming I have a specific problem which I need to remove some dataannotations's required attributes, how can I do this? I know about view-model but I don't want to use it for some reasons.