本地存储HTML5,C# [英] Local Storate HTML5,C#

查看:93
本文介绍了本地存储HTML5,C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的Web应用程序使用本地存储,并且它的工作方式我只是想知道是否存在,以防管理员更改网站中的任何内容,从而使存储的数据自行更新.
在此先感谢.

I''m using local storage for my web application , and its working i just want to know if there anyway in case the admin change anything in the website the stored data update by itself.
Thanks In Advance.

推荐答案

没有数据会自行"更新,只有有人更新时,它才会更新.也许您需要更好地解释您的意思?
No data will update ''by itself'', it will update only if someone updates it. Perhaps you need to explain better what you mean ?


offline.appcache:
缓存清单

#创建于2012年2月2日
缓存:
MasterPage.master
Default.aspx
about.aspx
contact.aspx

#标准脚本库
engine1/script.js
engine1/jquery.js

#内容(CSS和图像)
css/citrus_mq.css
css/desktop.css
css/phone.css
css/tablet.css
css/test.css
engine1/style.css
engine1/arrows.png

images/backgroundsite.jpg
images/flash.png
images/flash1.png
images/testimonials.jpg
images/sml_logo.png
images/lrg_hero.jpg

网络:
MasterPage.master
default.aspx
about.aspx
contact.aspx

反馈:
MasterPage.master
default.aspx
about.aspx
contact.aspx

MasterPage.master:
<%@主语言="C#" AutoEventWireup ="true" CodeFile ="MasterPage.master.cs" Inherits ="MasterPage"%>

<!DOCTYPE HTML>
<!-关于清单的通知->
< html manifest ="off.appcache">
.
.
</html>

然后我接下来要做的就是将.appcache添加到IIS管理器中
IIS配置-MIME类型-添加-
文件扩展名:appcache
MIME类型:text/cache-manifest.
offline.appcache:
CACHE MANIFEST

# Created on 2 February 2012
CACHE:
MasterPage.master
Default.aspx
about.aspx
contact.aspx

# Standard Script Libraries
engine1/script.js
engine1/jquery.js

# Content (CSS & images)
css/citrus_mq.css
css/desktop.css
css/phone.css
css/tablet.css
css/test.css
engine1/style.css
engine1/arrows.png

images/backgroundsite.jpg
images/flash.png
images/flash1.png
images/testimonials.jpg
images/sml_logo.png
images/lrg_hero.jpg

NETWORK:
MasterPage.master
default.aspx
about.aspx
contact.aspx

FALLBACK:
MasterPage.master
default.aspx
about.aspx
contact.aspx

MasterPage.master:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE HTML >
<!--Notice about Manifest-->
<html manifest="off.appcache">
.
.
</html>

And what all i did next is add the .appcache into the IIS Manager
IIS Configuration -- MIME Types -- Add --
File name extension : appcache
MIME type: text/cache-manifest.


这篇关于本地存储HTML5,C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆