I would like to use a route with the action in the querystring
http://server/path/controller?action=save
so I can use relative urls on the client-side
Is there an easy way to achieve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The solution that @Darin provided, is good and useful enough, but there is an issue with
actions that not supplied byHtml.ActionLinksuch asIndexactions that will cause an error like this:So you have to change the
MyRouteto this one: