RedirectToAction到不同的控制器不改变网址 [英] RedirectToAction to different controller without changing URL

查看:120
本文介绍了RedirectToAction到不同的控制器不改变网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能重定向到从一个控制器(A)动作到另一个控制器(B)动作不改变网址?

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

我试着使用RedirectToAction,但URL在浏览器中修改

I tried using RedirectToAction but URL in the browser changes

推荐答案

在这里,您去,这应该这样做,如果我正确理解你。

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

<一个href=\"http://stackoverflow.com/questions/799511/how-to-simulate-server-transfer-in-asp-net-mvc?lq=1\">How在ASP.NET MVC中模拟的Server.Transfer?

这篇关于RedirectToAction到不同的控制器不改变网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆