Mag
Mag

Reputation: 179

RedirectToAction to different controller without changing URL

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

Upvotes: 6

Views: 15361

Answers (1)

John Wu
John Wu

Reputation: 52210

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

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

Upvotes: 2

Related Questions