是否有使用MVC架构(asp.net、c#、jquery、ajax)自动保存冗长web表单数据的API/解决方案
我试图在Html代码中遵循此代码是否有使用MVC架构(asp.net、c#、jquery、ajax)自动保存冗长web表单数据的API/解决方案,c#,jquery,ajax,asp.net-mvc,autosave,C#,Jquery,Ajax,Asp.net Mvc,Autosave,我试图在Html代码中遵循此代码 @Html.ValidationSummary(true) @LabelFor(model=>model.Username,htmlAttributes:new{onchange=“function()”,@class=“control label col-md-2”}) @EditorFor(model=>model.Username) @Html.ValidationMessageFor(model=>model.Username) @LabelFor
@Html.ValidationSummary(true)
@LabelFor(model=>model.Username,htmlAttributes:new{onchange=“function()”,@class=“control label col-md-2”})
@EditorFor(model=>model.Username)
@Html.ValidationMessageFor(model=>model.Username)
@LabelFor(model=>model.Password,htmlAttributes:new{onchange=“function()”,@class=“control label col-md-2”})
@EditorFor(model=>model.Password)
@Html.ValidationMessageFor(model=>model.Password)
您需要使用JQuery/Javascript来
- 超时后保存数据
- 检测重定向/刷新
- 检测DOM闭包
我不知道MVC中有任何现有的库或功能可以做到这一点。(关于问题格式的注释)列表项应具有适当的间距。请检查1.4KB?我认为在现代浏览器中它的大小在5到10MB之间。