AndreyAkinshin / knockout-mvc

Power of Knockout.js for ASP.NET MVC
http://knockoutmvc.com
203 stars 125 forks source link

Redirecting after submit button #53

Open jphellemons opened 9 years ago

jphellemons commented 9 years ago

Hi I have something similar to http://stackoverflow.com/questions/12172571/redirecting-with-k-mvc

@ko.Html.Button("Commit Order", "CommitOrder", "Cart", null, new { @class = "btn btn-default" })

The debugger gets in the commitorder method in the cartcontroller, but when i return json("redirecturl") it does not work. not returing json and redirecting does not work either,

the thing is that i have a case in my code behind where i calculate to what route i need to redirect. Please let me know if you need to see more code or if my issue is not clear.