Top "Model-validation" questions

Model Validation is ASP.

MaxLength Attribute not generating client-side validation attributes

I have a curious problem with ASP.NET MVC3 client-side validation. I have the following class: public class Instrument : BaseObject { …

c# asp.net-mvc validation asp.net-mvc-3 model-validation
ViewModel validation for a List

I have the following viewmodel definition public class AccessRequestViewModel { public Request Request { get; private set; } public SelectList Buildings { get; private …

c# asp.net asp.net-mvc-3 fluentvalidation model-validation
How to do Integer model validation in asp.net mvc 2

I have a registration form and the user must enter the square footage of their house. I would like this …

c# asp.net-mvc int model-validation
MVC model validation for date

Is there any default validation for MVC 5 where I can set min and max value of date? In my model …

c# asp.net-mvc asp.net-mvc-5 model-validation
Validation error message not displaying MVC4

I am using MVC4. Validation is failing but validation error messages are not getting displayed. This is my model. public …

asp.net-mvc-3 asp.net-mvc-4 validation model-validation
How to Increase the size of TextArea in html razor view mvc4?

I have one text area field called Description in my view. I wish to increase the size of that field. …

html asp.net-mvc-4 razor model-validation
MVC .Net Core Model Validation - The value '' is invalid. Error

I am trying to use Model Validation in MVC .Net Core and can't manage to replace this default error message …

c# asp.net-mvc asp.net-core-mvc model-validation
Model Validation / ASP.NET MVC 3 - Conditional Required Attribute

I'm having trouble with my ASP.NET MVC 3 application. I have 2 propertiesin my model whereby I only want 1 of them …

asp.net-mvc-3 model-validation
Model state validation in unit tests

I am writing a unit test for a controller like this: public HttpResponseMessage PostLogin(LoginModel model) { if (!ModelState.IsValid) return …

c# unit-testing asp.net-web-api vs-unit-testing-framework model-validation
Can I get a blob by using its url?

I am storing the Azure blob url into my database.Can I get the blob by using that url? Actually …

asp.net-mvc blob azure-storage-blobs model-validation