remote validation asp.net core MVC

Опубликовано: 04 Март 2022
на канале: CodeS
4,248
77

Remote validation asp.net core MVC


Play List URL:
   • Asp net core 5 MVC Tutorial for Begin...  


Sort Video URL:
   • ASP.NET CORE EFCORE MVC CRUD with SOR...  


Pagination URL:
   • How to do Sort Search and Pagination ...  


Prev URL:
   • Validations in ASP .NET Core  


From this video you will learn Remote Validation in ASP.NET Core with an example.


What is remote validation?


The Remote validations in asp.net mvc is a mechanism used to make a
remote server call to validate specific data without posting the
entire form to the server.


This we normally do by using partial post or AJAX.
It is very useful on checking for the duplicates.


for example, During a user registration
process. it would be very nice if we
show the error message to the user in advance
that the entered userid is Already Taken.
instead of redirecting him to the error page.




What is Client Side Validation?
Client side validation is the process to validate the form
to ensure all required form controls are filled out, in the required and correct format.
This mainly checks the data formats. And normally this is done by Javascript.




What is Server Side Validation?
Server side validations, we do at the server side.
I mean at the controller or in the repository.


Even though all fields of the forms are already validated
at the client side. there exists lot of possibilities to cheat the client side validations
by turning off the javascripts on the browser.




so on Such scenarios, The program saves the not validated data to the persistent
store like database. which is high risk for any software.


So to overcome those problems. we use Server side validations.


Смотрите видео remote validation asp.net core MVC онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CodeS 04 Март 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,24 раз и оно понравилось 7 людям.