Question: What is the difference between Server-side validation and Client-side validation?
Answer: Client-side is faster than server-side as the networking time from client to server is saved server-side is done on the server. Then the server converts the data into an html page and sends to the browser. server-side is more secure as the user cannot see the code even he does a view-source.
Question:
What is the difference between Server-side validation and Client-side validation?
Answer:
Client-side is faster than server-side as the networking time from client to server is saved server-side is done on the server. Then the server converts the data into an html page and sends to the browser. server-side is more secure as the user cannot see the code even he does a view-source. Source: CoolInterview.com
Client side validation is processed the client side before submitting the form. The advantage of using the client side validation is it reduces the netork trafiic since the validation is processed in the client machine itself. Eg email isnumeric isdate etc.
Server side validation is processed in the server. Some data cannot be validated in the client side and it has to be validated in the server side. Eg Date between the two dates in the database.
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.
Answer should be complete in itself.
Related Questions
View Answer
<SCRIPT LANGUAGE="VBScript" RUNAT=Server> a = 1 </SCRIPT> <SCRIPT LANGUAGE="VBScript"> a = 2 </SCRIPT> <% Response.Write a %> In the sample code shown above, what will be written to the screen?