where is the validation occurs for validation controls

  • Thread starter Thread starter baroque Chou
  • Start date Start date
B

baroque Chou

I am using validation controls for input validation, but I would like
to know whether the validation occurs at client side or server side,
dose this cause any round trip.
It has a runat=server property, but I noticed that the validation
almost occurs the same time when I click the submit button.
 
I am using validation controls for input validation, but I would like
to know whether the validation occurs at client side or server side,
dose this cause any round trip.

It happens on both client and server side.

First client side is checked - if passed, then server side validation is
done.
 
so ,if it isn't passed, then won't cause any roundtrip, in other words.
no occupation of bandwith or any cost of server performance. because I
am handle a web site suppose to have a great number customer, the
performance is a key point to my decision.
 
so ,if it isn't passed, then won't cause any roundtrip, in other words.
no occupation of bandwith or any cost of server performance. because I
am handle a web site suppose to have a great number customer, the
performance is a key point to my decision.

Exactly - if validation is failed, the postback is canceled.

You can even write your own custom client side scripting using the Custom
Validator.
 
Back
Top