所有重定向方法都是ASP.NET-MVC [英] All redirect methods is ASP.NET-MVC
本文介绍了所有重定向方法都是ASP.NET-MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
server.transfer();
redirect();
redirectpermanent();
redirecttoaction();
redirecttoactionpermanent();
redirecttoroute();
redirecttoroutepermanent();
我尝试过:
server.transfer(); //从服务器端发生而没有请求
redirect(); //通过http请求发生
解决方案
这样的问题的最佳起点是直接来自文档的文档。
微软API和参考目录 [ ^ ]
您可以从这里轻松搜索任何方法。
以下链接帮助您的朋友。
MVC4不同的重定向技术(Razor) [ ^ 一>
server.transfer();
redirect();
redirectpermanent();
redirecttoaction();
redirecttoactionpermanent();
redirecttoroute();
redirecttoroutepermanent();
What I have tried:
server.transfer();// happens from the server side without request
redirect();// occur via http request
解决方案
The best place to start with questions like this is documentation directly from the source.
Microsoft API and Reference Catalog[^]
You can easily search for any of the methods from here.
Below link help to you friend.
MVC4 Different Redirection Techniques (Razor)[^]
这篇关于所有重定向方法都是ASP.NET-MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文