mvc4 html.beginform,MVC4 Html.BeginForm在Internet Explorer中提交按钮 9不工
我已經(jīng)寫在ASP.NET MVC4 /剃刀的形式。 該表格后很完善在Firefox和Chrome,但由于某種原因在Internet Explorer 10和11,“提交”按鈕沒有反應(yīng)。 (Internet Explorer 9的作品也不錯(cuò))。
這是我的看法形式的樣子:
@using (Html.BeginForm("MyAction","MyController", FormMethod.Post, new {id="myID"}))
{
Enter Registration
@Html.EditorFor(model => model.Sign)
@(Model.SignDescription)
}
這是我的控制器:
[HttpPost]
public ActionResult MyAction(InfoModel infoModel)
{
if(!string.IsNullOrEmpty(infoModel.Sign))
{
//do something
}
infoModel = LoadModel ();
return (indoModel);
}
我真的不知道為什么會(huì)這樣?
提前致謝!
編輯:我的形式是一個(gè)表里面,我忘了補(bǔ)充它..
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的mvc4 html.beginform,MVC4 Html.BeginForm在Internet Explorer中提交按钮 9不工的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 床单多少钱啊?
- 下一篇: 与传统的计算机硬件系统相比,计算机一级名