我有一个接受客户端请求的ActionResult,并且我正在尝试使用MVC验证和模型绑定魔术。此操作不返回视图,但根据特定逻辑重定向到其他操作。[Required]}
{ public string PropB;ActionResultRedirectToAction("A")
Elseif Model2 is valid then RedirectToAction(&q
我有一个带有多个表单的视图。这些表单具有使用Html.RenderPartial()添加的部分视图。因此,我希望能够在单个actionResult中区分不同的模型: public ActionResult LogOn(dynamic Model, string returnUrlModel.GetType()总是返回object,而Model is RegisterModel总是返回false。关于MVC3的行为,