MVC Chapter 12 Overview of MVC Projects

來源:互聯網
上載者:User

標籤:des   style   io   os   使用   ar   java   for   strong   

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.

 


  


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MVC Chapter 12 Overview of MVC Projects

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.