Quantcast
Browsing all 50 articles
Browse latest View live

Re: Multiple submit buttons with ASP.NET MVC: final solution

this seems like a very complicated solution to a very simple issue. All you have to do is give each button a unique name, set the names as optional string parameters with default empty string values,...

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

It depends on a mindset — if you are looking for a solution, yes, there are several ways to do this.However I wanted to solve it in the way MVC framework has intended for controllers to be used —...

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

Hi, I can't really get it to work with JQuery, seems to be conflicting in some area. Any ideas?

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

Hey Andrey, This solution is just excellent, very clean , much better then the proposed solution from David Findley I added some commenting and swapped the hard coded "Action" for a default, check it...

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

Hi Diego, Can you please explain what was the mistake and what fix you had to do. I am facimg the same problem. Regards,Ambrish

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

Hello Andrey, If i left the Html.BeginForm() as default then irrespective of which button i click the actionName parameter is always the same, Ex: "delete", so my collection of buttons only behavior in...

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

For anyone curious, I had a similar issue and the problem was in my Action.  I was using return View(model), so the server was looking for an "Action" view which really does not exist. The simple fix...

View Article

Re: Comparing .NET DI (IoC) Frameworks, Part 1

Simple Injector is missing from the comparison. There's a answer on Stackoverflow that uses this article's feature list, to compare Simple Injector: http://stackoverflow.com/a/819...

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

Would anyone be willing to share some code related to how they're registering routes in their Global.asax.cs? I've been attempting to utilize the code in this post (beautifully written, btw) however...

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

After working with another developer on my team we solved our issue. For us, instead of using BeginForm("Action","Post") we needed to specify our actual controller:...

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

Strange, I'll try this a bit later.I tried my method with parameters before and it worked. However, does it fail if id is not specified in the route?

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

 There are two drawbacks to this implementation: 1) when the form is posted, the URL changes; and 2) the executing action must explicitly specify the view name.  I have written a blog post...

View Article

Re: NMock 3.5

Hi Andrey, Really Great stuff. Can you share the code please. Email : vikram30capri@gmail.com

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

I am getting The current request for action 'Action' on controller type 'MyController' is ambiguous between the following action methods:  and it lists my two actions. 

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

What are the1. Names of actions2. Names of buttons3. Name of action in Html.BeginForm?

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

1.) public ActionResult Login(LoginModel viewModel, string returnUrl)public ActionResult Register(LoginModel viewModel) 2.)<input name="login" type="submit" value="Login"><input...

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

Do you have any other inputs named login or register in your form?(one example might be user name textbox called "login")

View Article


Re: Multiple submit buttons with ASP.NET MVC: final solution

=== MY SOLUTION == <input type="submit" value="Standard action"><input data-action="@Url.Action(" mysecondaction")"="" type="submit" value="Second action"> == JavaScript (jQuery): ==...

View Article

Re: Multiple submit buttons with ASP.NET MVC: final solution

 This one is good :)

View Article

Re: DI Framework Challenges, 2: Lists

Old post... :) But StructureMap can easily handle such lists!

View Article
Browsing all 50 articles
Browse latest View live