0

I'm currently doing a POS(Point of SALE) project by using ASP.Net. My web application works well when INTERNET is available to the client, but I'm trying to facilitate the client to use this web application even if the client doesn't haveINTERNET connectivity.

So, the tasks on which I did RND are:

  1. Launch Offline version of my web application, by creating a cache manifest file in HTML5. So, client can get offline access to the web application when he has no internet connectivity (using CACHE.APPCACHE)
  2. Using HTML5 WebSql to store sale-data at client side, when internet is not available at client side. And after that, this offline sale data(Local Sale Data) is synced to the live-database, when internet is connected.

But the issue is this, HTML5 Web Sql can be deleted by "deleting the Cookies and Content data" in browser. So, all the sale-data, from Local Storage, can be deleted. Is there any other solution to store data at client side, so that Local Stored data can't be deleted by "deleting the Cookies and Content data" in browser. Or can we store the LOCAL-Data into some kind of XML file instead of HTML5 WebSql!

  • Sale-Data = Data Storing when making a sale using POS

  • Local Storage = Data storing at client side

  • Live Storage = Data Storing in Live DataBase

Pau
  • 14,917
  • 14
  • 67
  • 94
Arsman Ahmad
  • 2,000
  • 1
  • 26
  • 34

2 Answers2

0

You can save your data in xml file or text file when internet is not available and store that data to your data base when internet became available. hence your data will be safe rather than using cookie because cookie can be deleted.

Nitin Kumar
  • 898
  • 7
  • 22
  • Thank You @Natin. But I required some kind of updation in Localy Stored Data, and the major issue with the TEXT-File is to make CRUD operations on it. Now I'm looking for some `XML-Based` solution – Arsman Ahmad Aug 19 '16 at 06:42
  • can we use a json based solution [Nitin Kumar](http://stackoverflow.com/users/6720983/nitin-kumar) instead of xml ?? – Afraz Ahmad Sep 23 '16 at 13:05
0

As answered by Nitin, saving Sale Data in XML file is a better way, and later you can push these data to your Live Storage. And even CRUD operation is easy on XML files. For more detail information, you can follow the below link- Best way to store data locally in .NET (C#)

Thanks

Community
  • 1
  • 1
adi
  • 39
  • 2