Asp.net 得到;System.Web.Mvc.Html.MvcForm“;第页
浏览器在我的表单旁边显示“System.Web.Mvc.Html.MvcForm”。我怎么能把它藏起来? 这是表格代码Asp.net 得到;System.Web.Mvc.Html.MvcForm“;第页,asp.net,asp.net-mvc,asp.net-mvc-3,razor,Asp.net,Asp.net Mvc,Asp.net Mvc 3,Razor,浏览器在我的表单旁边显示“System.Web.Mvc.Html.MvcForm”。我怎么能把它藏起来? 这是表格代码 @Html.BeginForm("NewComment", "Difficultes", FormMethod.Post) { @Html.HiddenFor(m => m.diff.id_diff) <table> <tr><label><b>No
@Html.BeginForm("NewComment", "Difficultes", FormMethod.Post)
{
@Html.HiddenFor(m => m.diff.id_diff)
<table>
<tr><label><b>Nouveau commentaire</b></label></tr>
<tr>
<td><b>Nom :</b></td><td>@Html.TextBoxFor(m=>m.pseudo)</td>
</tr>
<tr>
<td><b>Commentaire :</b></td><td>@Html.TextAreaFor(m=>m.nouveau)</td>
</tr>
</table>
<input type="submit" value="Ajouter" />
}
@Html.BeginForm(“新来的”,“困难”,FormMethod.Post)
{
@Html.HiddenFor(m=>m.diff.id\u diff)
新评论员
Nom:@Html.TextBoxFor(m=>m.pseudo)
评论:@Html.TextAreaFor(m=>m.nouveau)
}
将代码更改为(使用添加):
@使用(Html.BeginForm(“新来的”,“困难”,FormMethod.Post))
{
@Html.HiddenFor(m=>m.diff.id\u diff)
新评论员
Nom:@Html.TextBoxFor(m=>m.pseudo)
评论:@Html.TextAreaFor(m=>m.nouveau)
}
更改行@Html.BeginForm(“新来的”,“困难”,FormMethod.Post)
使用(Html.BeginForm(“newcommon”,“difficles”,FormMethod.Post))@来
@using (Html.BeginForm("NewComment", "Difficultes", FormMethod.Post))
{
@Html.HiddenFor(m => m.diff.id_diff)
<table>
<tr><label><b>Nouveau commentaire</b></label></tr>
<tr>
<td><b>Nom :</b></td><td>@Html.TextBoxFor(m=>m.pseudo)</td>
</tr>
<tr>
<td><b>Commentaire :</b></td><td>@Html.TextAreaFor(m=>m.nouveau)</td>
</tr>
</table>
<input type="submit" value="Ajouter" />
}