MVC4 return View(model)后页面没有数据!
contrller
public ActionResult _Contract_Record()
{
ReadyMixingConcreteBLL.Models.Contract_Record model = new ReadyMixingConcreteBLL.Models.Contract_Record();
return View(model);
}
[HttpPost]
public ActionResult _Contract_Record(string id)
{
IContract_RecordService service = BLLManager.get("ReadyMixingConcreteBLL.Service.Contract_RecordService") as IContract_RecordService;
ReadyMixingConcreteBLL.Models.Contract_Record model = service.GetContract_RecordInfoByID(id);
ModelState.Clear();
return View(model);
}
function ContractCheck(value) {
//var row = rows
// alert(value+"你妹啊!");
$.post('@Url.Action("_Contract_Record","SYSJGL")', {id: value }, function show() { LoginBox('userControl'); });
debugger;
}
@Html.DisplayFor(model=>model.Memo1)
<div id="userControl" style="display:none;">
<div class="MainBlock" style="width:800px;">
<div class="inLineMainDiv">
<div class="inLineleftDiv">企业序列号:<span>@Html.DisplayFor(model=>model.Product_Enterprise_ID)</span></div>
<div class="inLineMidDiv">备案日期:<span>@Html.DisplayFor(model=>model.Record_Date)</span></div>
<div class="inLineRightDiv">备案号:<span>@Html.DisplayFor(model=>model.Record_No)</span></div></div></div></div>
</div>