area的默认页:

 routes.MapRoute(
name: "MyArea",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
namespaces: new[] { "MvcWeb.Areas.Members.Controllers" }
).DataTokens.Add("Area", "Members");

设置默认控制器:

 routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new { controller = "Login", action = "Index", id = UrlParameter.Optional }
); 

最新文章

  1. 学习zepto.js(对象方法)[4]
  2. C# partial 學習筆記
  3. VM出现该虚拟机正在使用中的提示,让获取所有权限解决办法
  4. MATLAB for循环优化三例
  5. LeetCode:5_Longest Palindromic Substring | 最长的回文子串 | Medium
  6. Greedy:Protecting the Flowers(POJ 3262)
  7. OC接收数据时毫秒转date时间最简略方法
  8. mac下的ssh自动登陆
  9. PCL—低层次视觉—点云分割(超体聚类)
  10. 前端开发中的一些chrome插件推荐
  11. lnmp 60秒的服务器缓存时间
  12. struts2摘记
  13. [2017-08-09]一则使用WinDbg工具调试iis进程调查内存占用过高的案例
  14. jQuery常用事件及扩展
  15. C#中字符串的字面值(转义序列)
  16. Windows Server 2008 R2 服务器系统安装及配置全过程图文详解
  17. 详细分析MySQL事务日志(redo log和undo log)
  18. centos7 系统优化
  19. BI使用者的角色
  20. web操作文件的上传到服务器 并可下载 并且读取出来

热门文章

  1. 【转】PHP 之 CURL 模拟登陆并获取数据
  2. ExtJs学习之Window
  3. bootstrap3-typeahead 自动补全
  4. ASP.NET让FileUpload控件支持浏览自动上传功能的解决方法
  5. ORACLE 常用日期函数
  6. LINUX常用配置及命令
  7. LINQ To SQL 语法及实例大全
  8. log4net 部署到服务器之后 无法记录日志问题 解决方法
  9. Linux下编译Boost
  10. Hadoop:使用Mrjob框架编写MapReduce