Remote validation MVC 4.0 : multiple fields validation does not clear error
A similar question was asked here.
The solution is to use a helper method as described by Kiff.
how to use multiple AdditionalFields in remote validation - asp.net mvc
You could separate them by comma:
[Remote("IsUserNameAvailable", "User", AdditionalFields="LastName,EmailAddress" )]
MVC 3 remote validation for multiple fields
I found the problem.
The result of the first validation was cached. Attribute [OutputCache(Location = OutputCacheLocation.None, NoStore = true)]
helped.
Related Topics
Requesting HTML Over Https with C# Webclient
C# Property and Ref Parameter, Why No Sugar
Get List<> Element Position in C# Using Linq
Update App.Config System.Net Setting at Runtime
The Operation Cannot Be Completed Because the Dbcontext Has Been Disposed Error
Child Actions Are Not Allowed to Perform Redirect Actions, After Setting the Site on Https
Questions About Entity Framework Context Lifetime
Ef Core 2.1 Hasconversion on All Properties of Type Datetime
How to Catch Exceptions from a Threadpool.Queueuserworkitem
How to Draw a Rounded Rectangle with Winforms (.Net)
Ghost-Borders ('Ringing') When Resizing in Gdi+
How to Pass Objects into an Attribute Constructor
Selecting Attribute Values with HTML Agility Pack