Explain the differences between Server-side and Client-side
code?
Answer Posted / manisha
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.
________________________________________
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.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the compiled object?
Define what is razor? : asp.net mvc
How can you pass multiple complex types in Web API?
What are the event handlers that we can have in global.asax file?
Will the asp.net validators run in server side or client side?
How you will handle session when deploying application in more than a server?
What is http pipeline in asp.net?
Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?
Can we handle the error and redirect to some pages using web.config?
Can we have 2 web config files?
Write some code using interfaces, virtual methods, and an abstract class`
What is the difference between sealed vs static class?
Describe the master page.
What is a windows service?
Where would you use an ihttpmodule, and what are the limitations if any?