---
title: "Html.BeginForm Post going to HttpGet action rather than HttpPost in IE, fine in Chrome and Firefox"  
description: "Html.BeginForm Post going to HttpGet action rather than HttpPost in IE, fine in Chrome and Firefox"  
author: "Samuel Fernandes"  
published: 2014-02-03  
updated: 2014-02-03  
canonical: https://www.mindstick.com/forum/1944/html-beginform-post-going-to-httpget-action-rather-than-httppost-in-ie-fine-in-chrome-and-firefox  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 1 minute  

---

# Html.BeginForm Post going to HttpGet action rather than HttpPost in IE, fine in Chrome and Firefox

I have the following in my [Razor view](https://www.mindstick.com/forum/155820/how-to-generate-textbox-control-using-htmlhelper-in-razor-view):

```
 @using(Html.BeginForm("Edit", "MyController", FormMethod.Post)){    <div class="grid_1">&nbsp;</div>    <div id="ValSummary"> @Html.ValidationSummary(false)</div>    @Html.EditorFor(x=> x.Role, MVC.Shared.Views.EditorTemplates.KeyValuePairSelectList, new {
SelectListOptions = Model.RoleSelectList })<br /><br />    @Html.EditorFor(x=> x.Trust, MVC.Shared.Views.EditorTemplates.KeyValuePairSelectList, new {
SelectListOptions = Model.TrustSelectList.OrderBy(x => x.Text) })<br/><br />    @Html.EditorFor(x=> x.GmcCode)<br /><br />    <div class="createbutton">        <input id="btnGoBack" type="button" value="Back"/>          <input id="btnSubmit" type="button" value="Submit" />    </div>}
```

**In my [controller](https://www.mindstick.com/blog/273/passing-values-from-controller-to-view-in-asp-dot-net-mvc) I have**

```
[HttpGet]public virtual ActionResult Edit(string id){}[HttpPost]public virtual ActionResult Edit(ViewModel viewModel){}
```

In [Firefox](https://www.mindstick.com/forum/159398/any-way-to-disable-firefox-4-textarea-resizing-handles-please-help) and [Chrome](https://www.mindstick.com/blog/303260/discover-google-s-latest-ip-protection-privacy-test-feature-in-chrome) everything [works fine](https://answers.mindstick.com/qa/115732/my-software-works-fine-on-windows-10-but-crashes-on-windows-11-why) but in IE when the form is submitted the [HttpGet](https://www.mindstick.com/forum/156917/when-to-use-httpget-and-httppost-method-with-actionresult-method-in-asp-dot-net-mvc) [action](https://www.mindstick.com/forum/155752/what-is-action-result-with-its-types) is being fired rather than the HttpPost.

There are no clues in the call stack or from the IE [developer](https://www.mindstick.com/articles/157260/variation-between-web-designer-and-web-developer) [tools](https://www.mindstick.com/articles/13129/great-tools-for-continuing-your-education-past-college) console.

Anything obvious that I am [missing](https://answers.mindstick.com/qa/52138/international-missing-children-s-day-2019-was-observed-on)?

## Replies

### Reply by Pravesh Singh

Hi samuel,

Your Submit button should a real submit button with type="Submit"

```
<input id="btnSubmit" type="submit" value="Submit" />
```

to submit the form correctly in all browsers.


---

Original Source: https://www.mindstick.com/forum/1944/html-beginform-post-going-to-httpget-action-rather-than-httppost-in-ie-fine-in-chrome-and-firefox

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
