Anonymous,
The point of client side validation is to save a trip to the server. But
client side validation isn't guaranteed to work becuase of the wide
assortment of computers and browsers.
The way .Net handles this is to use client side validation to rule out
unecessary trips to the server for clients and browsers that it will work
for.
The validation on the server side can then be skipped by using an if/then
such as:
If Page.IsValid Then
'---your code here
End If
..Net checks if the client side validation worked and if so skips the server
side validation.
If the client side validation didn't work then the server side validation
takes over.
Also, all .net validators check if input is valid both client side and
server side (if the client validation didn't work). This means that a round
trip to the server won't take place if the client side validators are able
to run.
I hope this helps.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
Free code library at:
www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
<an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
Hello Guys,
I am using the validation controls to validate my data.
But the problem is "The page is still being posted to
server".
I want to get rid of the round trips to server. Are there
any get arounds for this problem apart from the
traditional JavaScript?
I mean to say ... can we use validation controls at the
client-side ONLY and not at the server-side? I understand
that there is a ClientValidate which is costly as I have
to maintain similar code at the server too.
Thanks a bunch!