Asp.net mvc 3 serveride remote check does not work for sending through violinist

I am trying to understand how remote verification works. It works great on the client side or in the browser. This is what I did, I need to check if the username exists during registration. So I added remote validation and worked fine in the browser. I wanted to test it on sending, so I took the request in Fiddler and changed the username to what exists, and then sent the request. This is accepted. RemoteValidation did not happen (of course, it failed in db). Therefore, is it not being checked on the server side?

+2
source share
1 answer

Therefore, it is not checked on the server side?

No, of course, it is not checked on the server. This is just an AJAX call when you change the value of the corresponding input, but when the form is submitted, you should obviously perform this check again.

+2
source

Source: https://habr.com/ru/post/1411243/


All Articles