What are the differences between Classes and Structures?

Monday, July 13, 2009
































Sno Class Structure
1 Reference Type Value Type
2 Stored in heap Stored in stack
3 Inheritance is available Not
4 Protected Modifier is allowed Not
5 Construtor is mandatory Not
5 Objects are destroyed in GC Not


 

What is SQL Cache Dependency in ASP.NET?


Is a feature which invalidates your cache when its dependent database table is changed. That is you cache some data from a table and the cache will automatically get invalidated when anything is changed in the table.


www.codecollege.NET

What are all the ways you can maintain state in asp.net?


Server-side:
1. Session
2. Application
3. Cache

Client-side:
1. Hidden fields
2. Hidden frames
3. View state
4. Cookies
5. Query String


www.codecollege.NET

What are the different modes ASP.NET sessions can be stored?


Asp.net session can be stored in 3 different modes:
1. In-Process
In this mode state is stored in asp.net worker process (aspnet_wp.exe). This is the default mode. The disadvantage is if IIS is restarted state will be lost.
2. State Server
In this mode state is stored in state server (which solves the IIS restart issue as the state server(aspnet_state.exe) can be kept in a separate machine). In this state is serialized and stored.
3. SQL server
Here state is serialized and stored in sql server.


www.codecollege.NET

What is scavenging ?


Scavenging is the process of removing items from cache when memory is scarce. Items are removed either when they are not accessed for some time or when they are marked as low priority when added to cache. Asp.net uses CacheItemPriority object to determine which items to be removed first.


www.codecollege.NET

LinkWithin

Blog Widget by LinkWithin

Recommended Books