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

How to disable client side script in validators?

Set “EnableClientScript” to false

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 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 are the different state management techniques in ASP.Net?

Asp.Net state management can be maintained in two ways as below
Client :- Side State Management

  • ASP.Net provides following techniques to store state information. This will improve application performance by minimizing server resource utilization.
  1. View state
  2. Hidden Fields
  3. Cookies
  4. Query Strings

Server :- Side State Management

  • With respect to Server Side State Management ASP.Net uses “Application state” and “Session state” objects to store data or user state.

What is the function of the CustomValidator control?

The function of the CustomValidator control is uesd to perform both client-side and server-side validation.