where is the validation occurs for validation controls

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.
 
G

Guest

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.
 
B

baroque Chou

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top