调用Html.BeginForm并指定操作

问题描述:

我一直在尝试执行以下操作,但是无论如何,我都会不断遇到不同的错误:

I have been trying to do the following but whatever I try I just keep getting different errors:

@using (Html.BeginForm(Url.Action(this.ViewContext.RouteData.Values["action"] as string)))

例如,这产生了:

<form action="/adminTests/create?Length=22" method="post">

有人知道怎么做吗?