Why Java Script validations

Posted by Mahesh_Chs under ASP.NET on 7/22/2012 | Points: 10 | Views : 1071 | Status : [Member] | Replies : 2
Hi,

Why i need to use JavaScript validations rather than using the validation controls of asp.net(Tool box validations)

what is the difference between JavaScript validations and normal validations and Ajax validations




Responses

Posted by: Mallesh on: 7/23/2012 [Member] Starter | Points: 25

Up
0
Down
Javascript Validations are used to validate at client side without postback the page to the server.

But Asp.net validation is a validation which use to validate in server side as well as client side to

validate the data it should goes to server, so it is postbacked. So if you just want to validate at the

client side and want a very fast validation use javascript. Otherwise use asp.net validation control as validating both the sides is always best.

For any further clarification go to this link:

http://forums.devx.com/showthread.php?t=11912

== Mallesh

Mahesh_Chs, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bhupentiwari on: 7/23/2012 [Member] Starter | Points: 25

Up
0
Down
Javascript provide client side validation. and it is very fast as compare to server side validation(asp.net validation).

but javascript validation will not work if javascript is disabled at client side browser

Thanks n Regards
Bhupendra Tiwari

Mahesh_Chs, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response