MVC页面跳转
来源:互联网 发布:10.9.5 mac os sierra 编辑:程序博客网 时间:2024/05/16 12:49
1.跳转到Url
public ActionResult rdurl() { return Redirect("http://www.baidu.com"); }
2.跳转到Action
public ActionResult rdaction() { return RedirectToAction("Index","Eice"); }
3.跳转到Routing规则
public ActionResult rdrouting() { return RedirectToRoute("Default",//Route名 new{ Controller = "Eice", Action = "Index" }); }4.显示文件
public ActionResult fn() { return File( "/Content/site.css"//文件路径 , "text/css"//文件类型 ); }
0 0
- c# MVC 跳转页面
- MVC页面跳转
- MVC 页面跳转
- spring mvc 页面跳转
- MVC C# 页面跳转
- spring mvc中的页面跳转
- spring mvc中的页面跳转
- spring mvc中的页面跳转
- Spring MVC中的页面跳转
- spring mvc中的页面跳转
- MVC后台异常跳转页面
- Spring mvc 页面跳转方式
- Spring MVC 页面跳转知识点
- MVC页面重定向'页面跳转
- MVC页面重定向'页面跳转
- MVC页面重定向'页面跳转
- ASP.NET MVC中的页面跳转
- ASP.NET MVC中的页面跳转
- MVC-各种传值方式
- 设计模式学习(简单工厂模式)
- 数据库垂直和水平切分
- ASCII字符集详解
- 樂天國際廣告人物志
- MVC页面跳转
- ZOJ 3732 Graph Reconstruction 可图判定性
- windows常用快捷键
- 谈谈地图中的道路绘制
- 大型网站的灵魂——性能
- National Day travel experience to Beijing Aquarium
- struts2漏洞原理及解决办法
- Cookies
- chmod - 修改文件的权限