私の提案は以下です:
Timer を使用して、以下のように Read を更新し続けます
setInterval("YourFunctionName();", 1000); //Time is in milliseconds
JQuery/JavaScript
<script type="text/javascript">
function YourFunctionName() {
var Istrue = false;
$.ajax({
url : "@Url.Action("ControllerName", "ActionName")",
contentType : "application/json; charset=utf-8",
dataType : "json",
type : "GET", //For non complex data only
data : JSON.stringify({ param1:'Value1' })
}).done(function(Result) {
//Update the Read Field here like below
$('ID').html(Result.Value)
})
.fail(function() {
});
}
</script>
アクション方法
[HttpGet]
public JsonResult ActionName()
{
return Json(new { Value = 10 }, JsonRequestBehavior.AllowGet);
}