Asp.net mvc 4 在post上提交表单值的问题(适用于Chrome,但不适用于FireFox)
我猜这是一个非常简单的问题,但由于我对asp.NETMVC比较陌生,我会责怪这一点。基本上我有下面的表格,当我提交的值在Chrome上发布,但不是FireFoxAsp.net mvc 4 在post上提交表单值的问题(适用于Chrome,但不适用于FireFox),asp.net-mvc-4,Asp.net Mvc 4,我猜这是一个非常简单的问题,但由于我对asp.NETMVC比较陌生,我会责怪这一点。基本上我有下面的表格,当我提交的值在Chrome上发布,但不是FireFox @使用(Html.BeginForm(“MyAction”,“MyController”,new{ReturnUrl=ViewBag.ReturnUrl})) { @Html.AntiForgeryToken() 填好这张表,伙计 @Html.Raw(“”) @Html.Raw(“”) } 非常感谢:-)请参见 您定义了图像映射,但
@使用(Html.BeginForm(“MyAction”,“MyController”,new{ReturnUrl=ViewBag.ReturnUrl}))
{
@Html.AntiForgeryToken()
填好这张表,伙计
@Html.Raw(“”)
@Html.Raw(“”)
}
非常感谢:-)请参见
您定义了图像映射,但应使用按钮
<input type="submit" name="iama" value="male" style="background: url('assets/img/male.jpg');width: 160px;height:160px;border: 0;" />
谢谢,就是这样,遗憾的是我只能使用图像本身,带有背景图像的按钮更难实现(我的意思是你必须进行特定的样式设置,使其看起来像…等等…图像)。
<input type="submit" name="iama" value="male" style="background: url('assets/img/male.jpg');width: 160px;height:160px;border: 0;" />