• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 678
  • Last Modified:

Asp.Net Store Application Data temporarily before sending to Database.

Hi Experts,
I have 4 Web forms in my Application
Ex: Patients Object
4 form display info like patientsInfo,Insurance Details,Billing Details etc which are editable.

My requirement is to collect information from each page ,save temporarily in the application
and in the final page save all the cached data to the Database.

This way we wanted to  avoid doing a save to database in each page & instead do it all at once in the final step to reduce Database hits.

Do i need to use any state management techniques like caching or session state , save the object in session state and finally collect all the data and save it to database.
Are  there any better techniques. to  this .Please advice.

  • 2
1 Solution
You can store this data in session state but it will be lost if the user remains inactive for session to timeout or if user logs out etc. If the requirement is to save this data temporarily across sessions, then you would need to use database.
B_PatiAuthor Commented:
Hi Crusier,
Thanks for the reply ,  We don't want to hit database regularly for each page,  what are the other options you recomend to save data temporarily.
Will any of Linq to Entities or Linq to data Set help me achieve this task.
Options are

1) Store in session - will be lost on logout, session timeout etc
2) DB - permanent
3) File system - permanent
4) In memory database - semi permanent - only lost when system restarted.

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now