Hi, I'm trying to figure out how I can put the following code into the Cache and Retreive it from Cache if it exists. Can someone help please?
protected void Page_Load(object sender, EventArgs e)
{
// Get dtBlogModules from Cache
DataTable dtBlogModules = (DataTable)Cache["cachedDataTable"];
// If blogModules not in cache, recreate blogModules
if (dtBlogModules == null)
{
dtBlogModules = GetUserControls();
DataTableReader datatableReader = dtBlogModules.CreateDataReader();
while (datatableReader.Read())
{
string ControlNames = datatableReader["blogModuleSSI&quo ...
Go to the complete details ...