Currently I am using 'Session' to keep the datatables in memory. But after doing few R&Ds, I came to know the it is not a good practice e.g.
Session("Syllabus") = RegistartionLogic.GetSyllabusInfo(Session("StudentID"))
Requirement:
- The items of dropdown will be different based on student-type.
- The dropdown data will be fetched from DB and these controls are used in more than one screen.
- Multiple DB call is not preferred from different screens for same
data. - So I need to call only one DB call, keep the data in memory and
then read data from memory next time onward.
I tried with 'cache' as well, but the issue was "Cache is not unique to the user.The scope of the data caching is within the application domain unlike "session". Every user can able to access this objects".
Kindly help me out.