MVC Chapter 12 Overview of MVC Projects

MVC Projects Templates

Empty 一个空 ASP.NET MVC 4 项目。
Basic 基本 ASP.NET MVC 4 项目。
Internet Application 带有使用窗体身份验证的帐户控制器的默认 ASP.NET MVC 4 项目。
Intranet Application 使用 Windows 身份验证的默认 ASP.NET MVC 4 项目。
Mobile Application 一个 ASP.NET MVC 4 项目,适用于带有使用窗体身份验证的帐户控制器的移动设备
Web API 一个 ASP.NET Web API 项目。

MVC Project Items

Folder/File               Description                                                                                                                                                  
/App_Data  This folder is where you put private data, such as XML files or databases if you are using SQL Server Express, SQLite, or other file-based repositories.
/App_Start This folder contains some core configuration settings for your project, including the definition of routes and filters and content bundles.
/bin The compiled assembly for your MVC application is placed here, along with any referenced assemblies that are not in the GAC.
/Content This is where you put static content such as CSS files and images.
/Controllers This is where you put your controller classes.
/Models This is where you put your view model and domain model classes, although all but the simplest applications benefit from defining the domain model in a dedicated project。
/Scripts This directory is intended to hold the JavaScript libraries for your application. Visual Studio adds the libraries for jQuery and several other popular JavaScript libraries.
/Views This directory holds views and partial views, usually grouped together in folders named after the controller with which they are associated.
/Views/Shared This directory holds layouts and views which are not specific to a single controller.
/Views/Web.config This is not the configuration file for your application. It contains the configuration required to make views work with ASP.NET and prevents views from being served by IIS and the namespaces imported into views by default.
/Global.asax  This is the global ASP.NET application class. Its code-behind class (Global.asax.cs) is the place to register routing configuration, as well as set up any code to run on application initialization or shutdown, or when unhandled exceptions occur.
/Web.config This is the configuration file for your application. We’ll explain more about its role later in the chapter.
/Areas Areas are a way of partitioning a large application into smaller pieces.
/App_GlobalResources These contain resource files used for localizing Web Forms pages.
/App_LocalResources  
/App_Browsers
This folder contains .browser XML files that describe how to identify
specific Web browsers, and what such browsers are capable of (whether
they support JavaScript, for example).

/App_Themes
This folder contains Web Forms themes (including .skin files), which
influence how Web Forms controls are rendered.

时间: 2024-12-28 20:17:37

MVC Chapter 12 Overview of MVC Projects的相关文章

Professional C# 6 and .NET Core 1.0 - Chapter 41 ASP.NET MVC

What's In This Chapter? Features of ASP.NET MVC 6 Routing Creating Controllers Creating Views Validating User Inputs Using Filters Working with HTML and Tag Helpers Creating Data-Driven Web Applications Implementing Authentication and Authorization W

Spring 4 官方文档学习(十一)Web MVC 框架之配置Spring MVC

在前面的文档中讲解了Spring MVC的特殊beans,以及DispatcherServlet使用的默认实现.在本部分,你会学习两种额外的方式来配置Spring MVC.分别是:MVC Java config 和  MVC XML namespace. 原文: Section 22.2.1, "Special Bean Types In the WebApplicationContext" and Section 22.2.2, "Default DispatcherSer

MVC笔记 网址路由与MVC的生命周期

一.网址路由 1.1  比对通过浏览器传来的HTTP请求 客户端对ASP.NET网站发出请求时,能通过R偶汤尼盖找到适当的HttpHandler来处理网页,大致的流程如图: 如果HttpHandler是由MvcHandler来处理,那么,此时就会进入MVC的执行生命周期,并且会找到适当的Controller与Action来对其进行处理,并将信息反馈给客户端. 1.2 将适当的网址返回浏览器 网址路由的另一个用途是决定MVC 应该输出什么样的网址并将其返回浏览器,跳转地址或在View中显示超链接时

Chapter 12 Touch Events and UIResponder

Chapter 12  Touch Events and UIResponder 1.As a subclass of UIResponder, a UIView can override four methods to handle the distinct touch events: a finger or fingers touches the screen: -(void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event a

System.Web.Mvc.dll在各个版本MVC中的文件位置

the default folder would be like the following: MVC 5 C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Stack 5\Packages\ Microsoft.AspNet.Mvc.5.0.0\lib\net45\System.Web.Mvc.dll MVC 4 C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assembli

asp.net mvc 3.0 知识点整理 ----- (3).asp.net mvc 3 和asp.net mvc 4 对比

asp.net mvc的版本更新很快,每个版本都在前一个版本的基础上,进行性能的优化和功能的完善和提升. 以下,便是我对比了下两个版本,发现最基本的差异.(更新补充中..) 一.关于配置类Global.asax的不同 为了较少配置类的杂乱代码,asp.net mvc 4 中 将Global.asax文件中的内容单独到 App_Start 下的几个配置文件中去. 在asp.net mvc 3 中: public static void RegisterGlobalFilters(GlobalFil

设置Mvc路由Asp.net 与 mvc同用

App_start/RouteConfig.cs/RegisterRoutes(RouteConllection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}");//设置*.axd等格式的网址路径不要通过asp.net mvc 路由运行.  这样设置就可以和asp.net mvc 共存 //设置mvc路由 routes.MapRoute( name:"Dafault",   //路由名称 url:

ASP.NET MVC学习---(五)MVC初体验

经过之前n多的铺垫 我们已经大概了解了这个姓m名vc的家伙了 那么今天我们就来体验一把 怎么体验呢? 就来做一个小例子吧~ mvc增删改查的例子 数据库还是之前我们的老朋友 关系图: 表中的数据已填好 T_Users 将就着用着吧,哈哈 现在要求对T_Users表进行增删改查 开搞~ 回到之前新建的mvc项目 在Controllers文件夹下新建一个名为Home的空控制器 当浏览器请求Home下面的Index方法的时候返回什么? 当然是主页面啦 这里我们的主页面就是显示T_Users数据列表 代

像asp.net Mvc一样开发nodejs+express Mvc站点

像asp.net Mvc一样开发nodejs+express Mvc站点 首先,我是个c#码农.从事Mvc开发已然4个年头了,这两年前端MVC的兴起,我也跟风学了一些,对前端的框架也了解一些,angularJs,requirejs,commonJs,backbone等等前端的mvc框架也异常流行,与这些前端的流行框架一同火起来的还有node.js. Node.js将javascript作为服务器端的代码开发,由其语言特性(单线程,异步)等以高效率高吞吐著称.这里不会去讨论node.js的好的坏的