ASP.NET MVC3 - receiving the “No overload for method 'BeginForm' takes 6 arguments” error message?

You need to specify which controller action you are going to post to and use the proper overload.

Up vote 0 down vote favorite share g+ share fb share tw.

My controller has two following methods... public FileResult GetImage(int id) { // something } public FileResult GetImageTwo(int id) { // something } Create. Cshtml as the following code... @using (Html. BeginForm("Create", "ProductCategory", "GetImage", "GetImageTwo", FormMethod.

Post, new { enctype = "multipart/form-data" })) Update So the answer is it can't be done like this. Asp. Net-mvc-3 link|improve this question edited Apr 15 '11 at 14:04 asked Apr 15 '11 at 12:55DiscoDude4515 76% accept rate.

Using (Html. BeginForm("GetImage", "ProductCategory", FormMethod. Post, new { enctype = "multipart/form-data" })) { //somecode }.

Closing this as it can't be done – DiscoDude Apr 15 '11 at 14:05.

That has nothing to do with routes. Error is simple, you are calling Html. BeginForm overload that does not exists.

In other words, there's no method like Html. BeginForm which would take 6 arguments. If you update your question to show what are you trying to achieve, maybe stack could help you.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions