使用Html.BeginForm问题MVC3剃刀 [英] MVC3 Razor using Html.BeginForm problem
本文介绍了使用Html.BeginForm问题MVC3剃刀的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这可能是一个简单的事情,但香港专业教育学院得到了以下code:
This is probably a simple thing, but ive got the following code:
<div>
@using (Html.BeginForm()) {
<p>
...
</p>
}
</div>
和它不断抱怨起{支架必须跟着一个结束}支架,但它的存在,而所有code例子做这样的东西,显示此为做到这一点,所以我是一个有点百思不得其解,为什么它不工作...
And it keeps complaining that the starting { bracket must be followed by a end } bracket, but its there, and all code examples doing this sort of stuff show this as the way to do it, so im a bit baffled as to why it doesn't work...
推荐答案
则可能是在&LT的code错误; P&GT;
和&LT; / p&GT;
标签
尝试注释掉吧,看看结果是什么:
Try commenting it out and see what the result is:
<div>
@using (Html.BeginForm()) {
<p>
@* = Server side comment out.
....
*@
</p>
}
</div>
这篇关于使用Html.BeginForm问题MVC3剃刀的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文