Posting a form and redirecting to action ASP.NET MVC
Posted
by dean nolan
on Stack Overflow
See other posts from Stack Overflow
or by dean nolan
Published on 2009-07-15T21:52:07Z
Indexed on
2010/04/15
12:03 UTC
Read the original article
Hit count: 564
asp.net-mvc
I have a navigation bar that uses JQuery to move between 4 stages of signup process.
However I need to make sure everything is working with JS disabled.
So I have these 4 link images at the bottom of the page and I need so that if one is clicked it posts to the current action so I can save all the form data and then redirect to the next stage.
The redirect is easy enough as I will just pass a parameter in the route or form but I don't know how to post the method using just action links.
I could put 4 different submit buttons with different classes for the image backgrounds etc but this feels wrong.
Any ideas?
© Stack Overflow or respective owner