【发布时间】:2010-05-17 14:30:23
【问题描述】:
我有一个用于创建动态实体的页面。
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
...
我有两个动作:
public ActionResult Create()
{
dynamic model = ...
return View(model);
}
[HttpPost]
public ActionResult Create(dynamic(1) entity)
{
...
}
好吧,问题在于页面中的实体是空的。如果我将 (1) 中的动态更改为真实类型,它可以正常工作。
【问题讨论】:
-
你能把代码贴在这里查看吗?
标签: asp.net-mvc dynamic view