Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
MY qusestion is which one is better to choose ? Javascript or asp.net Validation control for client side validation?


If yes, which one do you recommend? Please provide a simple explanation to it
Posted

 
Share this answer
 
You can use any one of that(In which you feel comfortable).
Rex M[^] Wrote:
Always validate on the server. Client-side validation is only to make the user experience more pleasant. Which is important, but only important as far as the experience goes. Validation on the client is not important at all for the purposes of validation, because anything running on the client machine can be compromised or bypassed by the same client.



--Amit
 
Share this answer
 
Comments
♥…ЯҠ…♥ 26-Sep-13 5:30am    
I believe client side validation is mandatory, it is always useful to avoid unnecessary server post back and as @Amit said try to implement server side validations too.. double checking the data is always good.......
_Amy 26-Sep-13 6:00am    
Thank you for your suggestion. Please read my answer carefully. Here, I am telling that OP can use client side validation using JavaScript or Asp.Net Validation Controls. Client side validation is used only to prevent unnecessary server postbacks.
priyanshbhaliya 26-Sep-13 12:10pm    
But It is not my question answer.... which one better to choose ....
_Amy 26-Sep-13 23:41pm    
Both are almost same. I would suggest you to go with JavaScript. See : Why JavaScript is so Important to Web?[^]
priyanshbhaliya 27-Sep-13 2:09am    
thnks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900