Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc 4 在post上提交表单值的问题(适用于Chrome,但不适用于FireFox)_Asp.net Mvc 4 - Fatal编程技术网

Asp.net mvc 4 在post上提交表单值的问题(适用于Chrome,但不适用于FireFox)

Asp.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(“”) } 非常感谢:-)请参见 您定义了图像映射,但

我猜这是一个非常简单的问题,但由于我对asp.NETMVC比较陌生,我会责怪这一点。基本上我有下面的表格,当我提交的值在Chrome上发布,但不是FireFox

@使用(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;" />