How many ways can we maintain the state of a page?

1. Client Side – Query string, hidden variables, viewstate, cookies
2. Server side – application , cache, context, session, database

Should validation occur server-side or client-side? Why?

Client-side validation because there is no need to request a server side date when you could obtain a date from the client machine.

What type of code (server or client) is found in a Code-Behind class?

Server-side code.

What is the difference between Server-side and client-side code?

Server side code is executed at the server side on IIS in Asp.NET framework, while client side code is executed on the browser.

What is the difference between server-side and client-side caching?

Server-side caching caches output before it’s sent to the browser. Subsequent requests to that data will retrieve from the cache.
Client-side caching stores data (such as pages accessed over the Internet) on a user’s hard drive so that it doesn’t need to be downloaded again.

Should user input data validation occur server-side or client-side? Why?

All user input data validation should occur on the server at a minimum. Additionally, client-side validation can be performed where deemed appropriate and feasible to provide a richer, more responsive experience for the user.

What is Application State?

Application State is one of the Server Side State management Mechanism which stores application memory on the server rather than persisting data in the client side memory.