I have several views that submit to the same controller’s ActionResult and would like the RedirectToAction statement to return to the one that called it:
return RedirectToAction([view that called it], new { ID = ID });
thx
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.
As an addition to the methods described here, as Robert Harvey suggests, I would recommend using AJAX calls to the controller. Thus you don’t have to return to views at all.