Force RedirectToAction to return to the calling view
I have several views that submit to the same controller's Actio开发者_开发技巧nResult and would like the RedirectToAction statement to return to the one that called it:
return RedirectToAction([view that called it], new { ID = ID });
thx
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.
精彩评论