i
Web Application Fundamentals
Using Internet Information Services
Web Forms
ASP.NET MVC
Web Services
ASP.NET Features
Request/Response Programming
HttpRequest Class
HTTP Collections
HttpResponse Class
Redirection
HttpUtility Class
Using Visual Web Developer
Visual Studio Forms Designer
Using Components
Shadow Copying
Using the Global.asax File
Data Binding
Different Types Of Caching
How to use Object cache
Optimizing Your ASP.NET Application
What Is Caching [Storage]
Forms Authentication
Windows Authentication
ASP.NET Security Fundamentals
Data Source Controls
SqlDataSource
SiteMapDataSource
The AccessDataSource Control
ObjectDataSource
Connection String Storage
GridView
DetailsView
FormView
ListView
DataPager
Entity Data Model
EntityDataSource
Remote Method Calls
Ajax Control Toolkit
Ajax Client Library
Rich Client Applications
Ajax [Asynchronous JavaScript and XML]
ScriptManager
UpdatePanel
Model-View-Controller Pattern
ASP.NET MVC versus Web Forms
ASP.NET MVC Projects in Visual Studio
Action Methods in MVC
Routing in MVC
Strongly-Typed Views [Add images here from the visual studio]
Model Binding
Validation
ADO.NET [ActiveX Data Object]
ASP.NET Data Providers
Connections
Commands
DataReaders and Connected Access
DataSets and Disconnected Access
//Assign the value to the cache
Cache["Greetings"]="Good Morning!";
//use the cache
LabelGreetings.Text=Cache["Greetings"] != null?(string)Cache["Greeting"]:"";
It's always good practice to check the cache item is null or not else. It has the chance to break the application with the null reference exception.
How to insert the item to the cache:
Below are the different parameters available for this caching technique:
Key: Key used to access the item. It must be unique in the cache.
Value: Data (object) the needs to be cache.
Dependencies - It specifies if the cache key depends on some other item in the cache. If it is dependent and that is changed, then the cache of that object gets automatically cleared.
Absolute expiration - its value is in date-time format. It specifies at what time the object should be removed from the cache.
Sliding expiration - It specifies that the object should be removed after this timespan only if it has not been accessed by the user.
Priority - This determines which objects need to removed first when memory starts to run low.
Low
below normal
Normal - This is the default value
abnormal
High
not removable
Don't miss out!