Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
TryValidateModel 
can only justify whether it is valided successfully, but it can not give the error message. How can do it.

What I have tried:

I test the
TryValidateModel 
, and find some document, but no this method to realize getting the error message.
Posted
Updated 19-Jan-21 16:11pm

1 solution

 
Share this answer
 
Comments
rtksmithjoton123 19-Jan-21 22:55pm    
I use asp.net core
Sandeep Mewara 19-Jan-21 23:09pm    
Does that make a difference here? ASP.NET Core MVC - above details are related to that and should apply.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900