protected override void OnInit(EventArgs e) { var currentPage = HttpContext.Current.CurrentHandler as Page; var urlAppCode = Convert.ToString(currentPage.RouteData.Values["applicationCode"]); var urlModuleCode = Convert.ToString(currentPage.RouteData.Values["applicationModule"]); if (!string.IsNullOrEmpty(urlAppCode) && !string.IsNullOrEmpty(urlModuleCode)) { if (urlAppCode != SessionVariables.CurrentApplicationCode) { ApplicationCommon.ResetApplicationCache(urlAppCode); } else if (urlModuleCode != SessionVariables.CurrentApplicationModuleCode) { ApplicationCommon.ResetApplicationModuleCache(urlModuleCode); } } }