I am currently in the process of building an Ajax-driven payment system within Umbraco and I am currently trying to load a partial view containing an Umbraco form using @Ajax.Action.
This is for Umbraco v6. The tutorial I found online was also for this older version of Umbraco but I am using the most recent version which it did not seem to work with.
Jason Espin, did you ever manage to solve this? Curiously, five years later, I am exactly in the same spot, but with Umbraco 8. As far as also getting the "Length" attribute after the route.
Using Ajax.ActionLink with a Surface Controller
Hi all,
I am currently in the process of building an Ajax-driven payment system within Umbraco and I am currently trying to load a partial view containing an Umbraco form using @Ajax.Action.
My problem is that with the following settings:
The button generated resolves to the following Url:
How do I ensure that this correctly resolves to my SurfaceController?
Maybe this post can help you. I followed this and got it working :
http://www.systenics.com/blog/creating-an-ajax-enabled-contact-form-in-umbraco-6-with-aspnet-mvc-4-and-twitter-bootstrap/?tag=Umbraco+6
Dave
Hi Dave,
This is for Umbraco v6. The tutorial I found online was also for this older version of Umbraco but I am using the most recent version which it did not seem to work with.
Cheers,
Jason
Hi Jason,
Using surface controllers in v6 and v7 should work the same.
Can you post some code ?
Dave
I have posted the code above. It is the same as what you sent over in the link except it always fails to direct to
and instead routes to
I also have no idea where the Length=15 is coming from as I do not specify that anywhere
We have this in our view :
Maybe this can help.
Dave
This still does not work for me and fails to direct to the Surface Controller correctly.
Can you post all your code ? Controller..view ... etc..
Dave
Jason Espin, did you ever manage to solve this? Curiously, five years later, I am exactly in the same spot, but with Umbraco 8. As far as also getting the "Length" attribute after the route.
is working on a reply...