0
我有一个用ASP.NET MVC4/Razor编写的表单。表单发布在Firefox和Chrome中运行良好,但由于某些原因,在Internet Explorer 10和11中,“提交”按钮无响应。 (Internet Explorer 9的作品也不错)。MVC4 Html.BeginForm提交按钮在Internet Explorer> 9不工作
这是我的看法形式的样子:
<div class="bla">
<table style="width:100%;">
@using (Html.BeginForm("MyAction","MyController", FormMethod.Post, new {id="myID"}))
{
<thead>
<tr>
<th class="heading highlight">Enter Registration</th>
<th>
<span style="display: block;">
@Html.EditorFor(model => model.Sign)
<input style="margin-left:4px;" type="submit" value="Save" />
</span>
<span style="display: block; font-weight: normal;">@(Model.SignDescription)</span>
</th>
</tr>
</thead>
}
</table>
</div>
这是我的控制器:
[HttpPost]
public ActionResult MyAction(InfoModel infoModel)
{
if(!string.IsNullOrEmpty(infoModel.Sign))
{
//do something
}
infoModel = LoadModel();
return (indoModel);
}
我真的不知道为什么会这样......
THANKs提前!
编辑: 我的形式是在表内,我忘了补充它..
很可能是由于HTML呈现无效而造成的。您的浏览器可能处于怪异模式。 –
@TiesonT .:如何指出无效的html。 –
'