这种观点:
@Using Html.BeginForm
SimpleMessage
End Using
@Helper SimpleMessage()
@<p>This is a simple message</p>
End Helper
结果是
<form action="/Controller/Action" method="post"></form>
但
@* Now let's not call it from within a using *@
@SimpleMessage
@Helper SimpleMessage()
@<p>This is a simple message</p>
End Helper
结果是
<p>This is a simple message</p>
为什么我的助手在我的内部不工作Using Html.BeginForm
?