Upload
leeju-lee
View
98
Download
5
Embed Size (px)
DESCRIPTION
ASP NET MVC 記錄
Citation preview
Asp Net MVC
禮助 leoli
Microsoft Web Platform Installer
ASP .NET MVC4 Project
ASP .NET MVC Overview
Microsoft Web Platform Installer
ASP .NET MVC 4 Project
Create ASP.NET MVC 4
Create ASP.NET MVC 4
View Engine
ASPX Engine Razor Engine
專案結構
Content (image 、 css)
Scripts (Js)
Models
Views
Controllers
Add Controller(1)
Add Controller(2)
Add Controller(3)
Add View(1)
Add View(2)
Add View(3)
Add View(4)
Razor Layouts
Razor Layouts (1)
Razor Layouts (2)
Routing
Routing - URL Patterns
ASP .NET MVC Overview
Overview
Model 模型
( 處理商業流程、驗證邏輯、資料存取 )
View 檢視
( 使用者瀏覽的資訊 )
Controller 控制器
( 處理使用者的要求及回應、 Model 與 View 整合 )
運作流程
Controller Method View Redirect RedirectToAction RedirectToRoute Json JavaScriptResult Content File
Action Result ViewResult EmptyResult RedirectResult JsonResult JavaScriptResult ContentResult FileContentResult FilePathResult FileStreamResult
參考資料
Microsoft Web Platform Installer
黑暗執行緖 Bundle
官網 Bundle
官網 Razor Engine
KingKong Bruce Model Binding