重定向到上一页
问题描述:
在mvc 3中。
如何重定向到上一页?
谢谢和问候,
Anupama
In mvc 3 .
How to redirect to previous page?
Thanks & Regards,
Anupama
答
简单使用
return Redirect(Request.UrlReferrer.ToString());
参考这些链接
如何重定向到之前的操作ASP.NET MVC? [ ^ ]
如何重定向到ASP.NET MVC中的调用页面? [ ^ ]
如何在ASP.NET MVC操作中获取引用URL? [ ^ ]
ASP.NET MVC3-如何根据用户来自哪个页面重定向用户? [ ^ ]
问候..:)
Refer these links
How do I redirect to the previous action in ASP.NET MVC?[^]
How do you redirect to the calling page in ASP.NET MVC?[^]
How do I get the referrer URL in an ASP.NET MVC action?[^]
ASP.NET MVC3-How to redirect users based on what page they came from?[^]
Regards..:)