-1
任何人都可以告诉我有关ASP.NET MVC 5中的不同重定向方法吗?我有用户Redirect
,RedirectToAction
,RedirectPermanent
,但我想知道在哪种情况下使用哪一个。ASP.NET MVC中有哪些不同的重定向方法?
请描述ASP.NET MVC 5中除此之外的所有可用的重定向方法。
任何人都可以告诉我有关ASP.NET MVC 5中的不同重定向方法吗?我有用户Redirect
,RedirectToAction
,RedirectPermanent
,但我想知道在哪种情况下使用哪一个。ASP.NET MVC中有哪些不同的重定向方法?
请描述ASP.NET MVC 5中除此之外的所有可用的重定向方法。
所有内部重定向都执行相同的操作(HTTP 302或HTTP 301)。方法不同,他们是如何解决URL重定向:
您可以使用如下响应重定向:
Response.Redirect("yoururl");//you can use route like: Response.Redirect("~/Home/About");
可能的重复[Wh at是在ASP.NET MVC的Redirect和RedirectToAction之间的区别?](http://stackoverflow.com/questions/12198909/what-is-the-difference-between-redirect-and-redirecttoaction-in-asp-net- mvc) – 2014-09-29 11:59:41
我想知道除这些之外的其他重定向技术。 – 2014-09-29 12:04:56