how to use offline database with javascript

Solutions on MaxInterview for how to use offline database with javascript by the best coders in the world

showing results for - "how to use offline database with javascript"
Leon
30 Jul 2018
1// Cache Action
2public ActionResult Manifest()
3     {
4         var manifest = "CACHE MANIFEST" + Environment.NewLine +
5            "# App Version: " + System.IO.File.GetLastWriteTime
6            (Server.MapPath("~/Views/Home/Index.cshtml")) + Environment.NewLine +
7            "# Server Assembly Version: " + this.GetType().Assembly.GetName().Version + 
8        Environment.NewLine +
9            "NETWORK:" + Environment.NewLine +
10            "*" + Environment.NewLine +
11            "CACHE:" + Environment.NewLine +
12            Url.Action("Index", "Home") + Environment.NewLine +
13            Url.Content("~/Content/site.css") + Environment.NewLine +
14            Url.Content("~/Content/bootstrap.min.css") + Environment.NewLine +
15            Url.Content("~/scripts/jquery-1.7.1.js") + Environment.NewLine +
16            Url.Content("~/scripts/bootstrap.min.js") + Environment.NewLine +
17            Url.Content("~/scripts/bootbox.min.js") + Environment.NewLine +
18            Url.Content("~/scripts/db.js") + Environment.NewLine +
19            Url.Content("~/scripts/Config.js") + Environment.NewLine +
20            Url.Content("~/scripts/DbManager.js") + Environment.NewLine +
21            Url.Content("~/scripts/index.js") + Environment.NewLine +
22            Url.Content("~/scripts/jquery.blockUI.js") + Environment.NewLine +
23            Url.Content("~/scripts/cache.js") + Environment.NewLine;
24
25         return Content(manifest, "text/cache-manifest");
26    }