RedirectToAction to different controller without c

2019-01-28 02:43发布

问题:

Is it possible to redirect to from one controller(A) action to another controller(B) action without changing URL?

I tried using RedirectToAction but URL in the browser changes

回答1:

Here you go, this ought to do it if I'm understanding you correctly.

How to simulate Server.Transfer in ASP.NET MVC?