2

I am trying to understand how remote validation works. It works great client side or in browser. This is what I did, I need to check if a username exists while registration. So I added remote validation and it worked perfectly in browser. I wanted to test it on submit, so I captured the request in Fiddler and changed the username to something that exists and then submitted the request. It accepted. RemoteValidation did not occur (of course it failed at db). Hence doesn't it validate on server side?

Jonna
  • 1,625
  • 1
  • 18
  • 38

1 Answers1

2

Hence doesn't it validate on server side?

No, of course that it doesn't validate on the server. It's just an AJAX call when you modify the value of the corresponding input but when the form is submitted you should obviously perform this validation once again.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928