Questions in C#

1. What is the states available in

Client side state:

  • View State
  • Control State
  • Hidden fields
  • Cookies
  • Query Strings

Server side state :

  • Application State
  • Session State

2. What is static class ?

A static class should contain static members and fields . Static fields values wont change for the whole Application.

  • Static methods should be specific to the application, not for the specific user. We cant replace it for session.
  • Static methods object state doesn’t change. ¬†so generally they will use static methods for retrieval¬†operation. We wont use Insert, Update methods with static cos its state will change