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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s