1. Client Side – Query string, hidden variables, viewstate, cookies
2. Server side – application , cache, context, session, database
Set “EnableClientScript” to false
Client-side validation because there is no need to request a server side date when you could obtain a date from the client machine.
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.
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.
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.
- View state
- Hidden Fields
- 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.
The function of the CustomValidator control is uesd to perform both client-side and server-side validation.