Html.BeginForm("action", "controller", new { id = ViewBag.FileID }, FormMethod.Post, new { id = "feedbackform" })
Regarding the request ?type=golden , I don't know how to do this. Of course, querysting is getting and undermining the whole purpose of FormMethod.Post . I mean, you can use FormMethod.Get if you want to receive data with requests, and this may be what you are looking for.
Alternatively, you can avoid html.beginform and do a querystring, get a + message, manually with a form tag.
Thirdly, if you use a form, you can create a hidden field:
[input type=hidden name="type" value="golden"]
Then, when the submit button is pressed, the value is passed correctly as a form variable.
Rich 09 Oct '13 at 18:39 2013-10-09 18:39
source share