【发布时间】:2013-10-07 10:34:47
【问题描述】:
我看到BeginForm 方法的重载,它具有以下签名:
(扩展) MvcForm HtmlHelper.BeginForm(string actionName, string ControllerName, FormMethod 方法)
我在调用时使用named-arguments,
@using (Html.BeginForm(actionName:"Index", controllerName:"Home", FormMethod.Get))
但是,我不断收到这样的错误:
CS1738: Named argument specifications must appear after all fixed arguments have been specified
任何想法我哪里出错了?
谢谢。
【问题讨论】:
标签: c# asp.net-mvc-4 .net-4.0 arguments