SlideShare una empresa de Scribd logo
1 de 12
Descargar para leer sin conexión
Vlog 02:
ASP.Net Core
教學
#Controller
SernHao Tv
SernHao TV
解說
Explain
SernHao Tv
# 什么是Controller?
# 如何在ASP.Net Core里創
建Controller?
# Controller的基本用法。
SernHao Tv
什么是Controller?
● 在MVC裡,View是用來顯示資訊。 Model是用來鏈接
資料庫。而Controller則是負責在View與Model之間接
收和傳遞數據。
● 是在MVC裡的一個互動的Class。
● 连接Model (或數據)和View。
SernHao Tv
Controller的基本用法。
● Controller 處理 Http-Post (route data) and Http-Get
(query-string)
● 接收从View得到的用户輸入的资料,然后给予特
定的反应。
● 执行business rule和functions。
SernHao Tv
開始執行!
Demo!
SernHao Tv
Thanks for Watching 感谢收看
留言Comments
SernHao Tv
Like
SernHao Tv Video
如何創建ASP.Net Core:
订阅 SernHao Tv,
每周观看新影片!
故事。
Story.
SernHao Tv
您好,我是SernHao Tv 的Sern Hao, 今天我想要跟您分享的是 "關於ASP.Net Core 里的 Controller"。
在這裡,我將深入淺出的為您解 說幾個關於ASP.Net Core 裡的 Controller 的幾個要點:
1)什麼是Controller?
- 是在MVC裡的一個互動的 Class。
- 在MVC裡,View是用來顯示資訊。 Model是用來鏈接資料庫。而 Controller則是負責在View與Model之間接收和傳遞數據。
- 連接Model (或數據)和View。
2) Controller的基本用法。 (demo)
- Controller 處理 Http-Post (route data) and Http-Get (query-string)
- 接收從View得到的用戶輸入的資料,然後給予特定的反應。
- 執行business rule和functions。
3) 如何在ASP.Net Core裡創建 Controller。 (demo)
- 在影片裡,我會講解有關 Controller如何被創建,以及一些主要的用途。
- 同時也會帶過Controller在ASP.net Core 裡的生命週期。
- 默認模板: "{controller=Home}/{action=Index}/{id?}") 【“/[Controller]/[ActionName]/[Parameters]”】
- 在 Solution Explorer里, 在“Controllers”的文件夹点击右键 > “Add” > “New Item...“ > 选择”MVC Controller Class“
- “Index”是在“Controller”上默認調用的方法,
附加的:
1) ASP.Net Core 是個.Net Framework,它使用.Net Framework 4.6. .Net Core 也可以算是C# 和MVC 1- 6 系列的一個很大的進步。而這裡的
ASP.Net Core 會使用的開發工具是 visual studio 2015。
2)在Visual Studio 2015中,您可以在更改程序並保存代碼後通過刷新瀏覽器以達到重新運行應用程序,而不用進行 debugging(Ctrl + F5)。
希望我的解说能帮到您。
Hi, how are you? I'm Sern Hao from SernHao Tv, the topic I want to share with you is "About Controller in ASP.Net Core".
Here, I will explain in simple terms for you to explain a few on the ASP.Net Core about Controller in a few key points:
1) What is the Controller?
- is an interactive Class in the MVC.
- In MVC, View is used to display information. Model is used to link the database. The Controller is responsible for receiving and
transferring data between View and Model.
- Connect Model (or data) and View.
2) Controller's basic usage. (Demo)
- Controller handles Http-Post (route data) and Http-Get (query-string)
- Receives the user input from View and then responds with a specific response.
- Execute business rule and functions.
3) How to create a Controller in ASP.Net Core. (Demo)
- In the video, I will explain how the Controller was created, as well as some of the main functions.
- roughtly explain the life cycle of controller in the ASP.net Core.
- default template: "{controller=Home}/{action=Index}/{id?}") [“/[Controller]/[ActionName]/[Parameters]”]
- In Solution Explorer, right-click folder of “Controllers” > “Add” > “New Item...“ > select ”MVC Controller Class“
- “Index” is the default method that will be called on a “Controller”
Bonus:
1) ASP.Net Core is a. Net Framework, which uses .Net Framework 4.6. ASP.Net Core can also be regarded as C # and MVC 1-6 series is a
big step forward. Moveover, visual studio 2015 will use as development tool for create ASP.Net Core program.
2) In Visual Studio 2015, you can re-run your app by refresh the browser after changing and save the code without debuggin (Ctrl + F5)
again.
Reference 参考:
1. Visual Studio Code Tutorial for Beginners - CodeGeek
https://www.youtube.com/watch?v=5WyJibE3ZK0
2. What is MVC? Model View Controller - HandsonERP
https://www.youtube.com/watch?v=qXRcVhWxuaU
3. Introduction to ASP.NET MVC Part 1/3: What is MVC and why should you use it? - Roger Harford
https://www.youtube.com/watch?v=YSHW9F2dtOY
4. Adding a controller - By Rick Anderson
https://docs.asp.net/en/latest/tutorials/first-mvc-app/adding-controller.html

Más contenido relacionado

La actualidad más candente

動手打造 application framework-twMVC#15
動手打造 application framework-twMVC#15動手打造 application framework-twMVC#15
動手打造 application framework-twMVC#15twMVC
 
twMVC#29 -Learning Machine Learning with Movie Recommendation
twMVC#29 -Learning Machine Learning with Movie RecommendationtwMVC#29 -Learning Machine Learning with Movie Recommendation
twMVC#29 -Learning Machine Learning with Movie RecommendationMia Chang
 
twMVC#22 | 一個微信專案從0到.000的效能調教之路
twMVC#22 | 一個微信專案從0到.000的效能調教之路twMVC#22 | 一個微信專案從0到.000的效能調教之路
twMVC#22 | 一個微信專案從0到.000的效能調教之路twMVC
 
webpack 入門
webpack 入門webpack 入門
webpack 入門Anna Su
 
twMVC#29 | 當.Net Core 遇到AWS Lambda
twMVC#29 | 當.Net Core 遇到AWS LambdatwMVC#29 | 當.Net Core 遇到AWS Lambda
twMVC#29 | 當.Net Core 遇到AWS LambdatwMVC
 
AngularJS 開發 ASP.NET MVC -twMVC#9
AngularJS 開發 ASP.NET MVC -twMVC#9AngularJS 開發 ASP.NET MVC -twMVC#9
AngularJS 開發 ASP.NET MVC -twMVC#9twMVC
 
Asp.net mvc 從無到有 -twMVC#2
Asp.net mvc 從無到有 -twMVC#2Asp.net mvc 從無到有 -twMVC#2
Asp.net mvc 從無到有 -twMVC#2twMVC
 
twMVC#23 | 快速上手 Azure Functions
twMVC#23 | 快速上手 Azure FunctionstwMVC#23 | 快速上手 Azure Functions
twMVC#23 | 快速上手 Azure FunctionstwMVC
 
twMVC#21 | 你所不知道的 Visual Studio
twMVC#21 | 你所不知道的 Visual StudiotwMVC#21 | 你所不知道的 Visual Studio
twMVC#21 | 你所不知道的 Visual StudiotwMVC
 
AngularJS training in Luster
AngularJS training in LusterAngularJS training in Luster
AngularJS training in LusterJason Chung
 
twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程
twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程
twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程twMVC
 
Vs2013新功能介紹 twMVC#11
Vs2013新功能介紹 twMVC#11Vs2013新功能介紹 twMVC#11
Vs2013新功能介紹 twMVC#11twMVC
 
輕鬆上手Asp.net web api 2.1-twMVC#14
輕鬆上手Asp.net web api 2.1-twMVC#14輕鬆上手Asp.net web api 2.1-twMVC#14
輕鬆上手Asp.net web api 2.1-twMVC#14twMVC
 
ASP.NET MVC 6 新功能探索
ASP.NET MVC 6 新功能探索ASP.NET MVC 6 新功能探索
ASP.NET MVC 6 新功能探索Will Huang
 
Angular js twmvc#17
Angular js twmvc#17Angular js twmvc#17
Angular js twmvc#17twMVC
 
ASP.NET MVC Code Templates實戰開發 -twMVC#4
 ASP.NET MVC Code Templates實戰開發 -twMVC#4 ASP.NET MVC Code Templates實戰開發 -twMVC#4
ASP.NET MVC Code Templates實戰開發 -twMVC#4twMVC
 
项目自动化实施
项目自动化实施项目自动化实施
项目自动化实施dhlzj
 
twMVC#01 | ASP.NET MVC 的第一次親密接觸
twMVC#01 | ASP.NET MVC 的第一次親密接觸twMVC#01 | ASP.NET MVC 的第一次親密接觸
twMVC#01 | ASP.NET MVC 的第一次親密接觸twMVC
 
如何在實務上使用TDD來開發 twmvc#12
如何在實務上使用TDD來開發 twmvc#12如何在實務上使用TDD來開發 twmvc#12
如何在實務上使用TDD來開發 twmvc#12twMVC
 
架構行動式網站(使用 ASP.NET MVC 4.0 -twMVC#6
架構行動式網站(使用 ASP.NET MVC 4.0 -twMVC#6架構行動式網站(使用 ASP.NET MVC 4.0 -twMVC#6
架構行動式網站(使用 ASP.NET MVC 4.0 -twMVC#6twMVC
 

La actualidad más candente (20)

動手打造 application framework-twMVC#15
動手打造 application framework-twMVC#15動手打造 application framework-twMVC#15
動手打造 application framework-twMVC#15
 
twMVC#29 -Learning Machine Learning with Movie Recommendation
twMVC#29 -Learning Machine Learning with Movie RecommendationtwMVC#29 -Learning Machine Learning with Movie Recommendation
twMVC#29 -Learning Machine Learning with Movie Recommendation
 
twMVC#22 | 一個微信專案從0到.000的效能調教之路
twMVC#22 | 一個微信專案從0到.000的效能調教之路twMVC#22 | 一個微信專案從0到.000的效能調教之路
twMVC#22 | 一個微信專案從0到.000的效能調教之路
 
webpack 入門
webpack 入門webpack 入門
webpack 入門
 
twMVC#29 | 當.Net Core 遇到AWS Lambda
twMVC#29 | 當.Net Core 遇到AWS LambdatwMVC#29 | 當.Net Core 遇到AWS Lambda
twMVC#29 | 當.Net Core 遇到AWS Lambda
 
AngularJS 開發 ASP.NET MVC -twMVC#9
AngularJS 開發 ASP.NET MVC -twMVC#9AngularJS 開發 ASP.NET MVC -twMVC#9
AngularJS 開發 ASP.NET MVC -twMVC#9
 
Asp.net mvc 從無到有 -twMVC#2
Asp.net mvc 從無到有 -twMVC#2Asp.net mvc 從無到有 -twMVC#2
Asp.net mvc 從無到有 -twMVC#2
 
twMVC#23 | 快速上手 Azure Functions
twMVC#23 | 快速上手 Azure FunctionstwMVC#23 | 快速上手 Azure Functions
twMVC#23 | 快速上手 Azure Functions
 
twMVC#21 | 你所不知道的 Visual Studio
twMVC#21 | 你所不知道的 Visual StudiotwMVC#21 | 你所不知道的 Visual Studio
twMVC#21 | 你所不知道的 Visual Studio
 
AngularJS training in Luster
AngularJS training in LusterAngularJS training in Luster
AngularJS training in Luster
 
twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程
twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程
twMVC#21 | 以實例說明ASP.NET Web API 服務的開發與測試過程
 
Vs2013新功能介紹 twMVC#11
Vs2013新功能介紹 twMVC#11Vs2013新功能介紹 twMVC#11
Vs2013新功能介紹 twMVC#11
 
輕鬆上手Asp.net web api 2.1-twMVC#14
輕鬆上手Asp.net web api 2.1-twMVC#14輕鬆上手Asp.net web api 2.1-twMVC#14
輕鬆上手Asp.net web api 2.1-twMVC#14
 
ASP.NET MVC 6 新功能探索
ASP.NET MVC 6 新功能探索ASP.NET MVC 6 新功能探索
ASP.NET MVC 6 新功能探索
 
Angular js twmvc#17
Angular js twmvc#17Angular js twmvc#17
Angular js twmvc#17
 
ASP.NET MVC Code Templates實戰開發 -twMVC#4
 ASP.NET MVC Code Templates實戰開發 -twMVC#4 ASP.NET MVC Code Templates實戰開發 -twMVC#4
ASP.NET MVC Code Templates實戰開發 -twMVC#4
 
项目自动化实施
项目自动化实施项目自动化实施
项目自动化实施
 
twMVC#01 | ASP.NET MVC 的第一次親密接觸
twMVC#01 | ASP.NET MVC 的第一次親密接觸twMVC#01 | ASP.NET MVC 的第一次親密接觸
twMVC#01 | ASP.NET MVC 的第一次親密接觸
 
如何在實務上使用TDD來開發 twmvc#12
如何在實務上使用TDD來開發 twmvc#12如何在實務上使用TDD來開發 twmvc#12
如何在實務上使用TDD來開發 twmvc#12
 
架構行動式網站(使用 ASP.NET MVC 4.0 -twMVC#6
架構行動式網站(使用 ASP.NET MVC 4.0 -twMVC#6架構行動式網站(使用 ASP.NET MVC 4.0 -twMVC#6
架構行動式網站(使用 ASP.NET MVC 4.0 -twMVC#6
 

Destacado

Linkbuilding with ux is new SEO
Linkbuilding with ux is new SEOLinkbuilding with ux is new SEO
Linkbuilding with ux is new SEOSimplilearn
 
How to develop a winning content marketing strategy
How to develop a winning content marketing strategyHow to develop a winning content marketing strategy
How to develop a winning content marketing strategySimplilearn
 
PMP: Battle of the genders
PMP: Battle of the gendersPMP: Battle of the genders
PMP: Battle of the gendersSimplilearn
 
4 young millionaires: Who they are and how they got there
4 young millionaires: Who they are and how they got there4 young millionaires: Who they are and how they got there
4 young millionaires: Who they are and how they got thereSimplilearn
 
How To Pass PMP Exam- PMP Certification Presentation
How To Pass PMP Exam- PMP Certification PresentationHow To Pass PMP Exam- PMP Certification Presentation
How To Pass PMP Exam- PMP Certification PresentationSimplilearn
 
Project Scope Management - PMBOK 5th Edition
Project Scope Management - PMBOK 5th EditionProject Scope Management - PMBOK 5th Edition
Project Scope Management - PMBOK 5th Editionpankajsh10
 
Free PMP notes,Free PMP Study Material,Free PMP Chapter wise notes,PMP Exam N...
Free PMP notes,Free PMP Study Material,Free PMP Chapter wise notes,PMP Exam N...Free PMP notes,Free PMP Study Material,Free PMP Chapter wise notes,PMP Exam N...
Free PMP notes,Free PMP Study Material,Free PMP Chapter wise notes,PMP Exam N...TURKI , PMP
 
How to Build SEO into Content Strategy
How to Build SEO into Content StrategyHow to Build SEO into Content Strategy
How to Build SEO into Content StrategyJonathon Colman
 

Destacado (11)

Linkbuilding with ux is new SEO
Linkbuilding with ux is new SEOLinkbuilding with ux is new SEO
Linkbuilding with ux is new SEO
 
How to develop a winning content marketing strategy
How to develop a winning content marketing strategyHow to develop a winning content marketing strategy
How to develop a winning content marketing strategy
 
PMP: Battle of the genders
PMP: Battle of the gendersPMP: Battle of the genders
PMP: Battle of the genders
 
4 young millionaires: Who they are and how they got there
4 young millionaires: Who they are and how they got there4 young millionaires: Who they are and how they got there
4 young millionaires: Who they are and how they got there
 
How To Pass PMP Exam- PMP Certification Presentation
How To Pass PMP Exam- PMP Certification PresentationHow To Pass PMP Exam- PMP Certification Presentation
How To Pass PMP Exam- PMP Certification Presentation
 
Project Scope Management - PMBOK 5th Edition
Project Scope Management - PMBOK 5th EditionProject Scope Management - PMBOK 5th Edition
Project Scope Management - PMBOK 5th Edition
 
Free PMP notes,Free PMP Study Material,Free PMP Chapter wise notes,PMP Exam N...
Free PMP notes,Free PMP Study Material,Free PMP Chapter wise notes,PMP Exam N...Free PMP notes,Free PMP Study Material,Free PMP Chapter wise notes,PMP Exam N...
Free PMP notes,Free PMP Study Material,Free PMP Chapter wise notes,PMP Exam N...
 
Build. Better. Content!
Build. Better. Content!Build. Better. Content!
Build. Better. Content!
 
How to Build SEO into Content Strategy
How to Build SEO into Content StrategyHow to Build SEO into Content Strategy
How to Build SEO into Content Strategy
 
Content Marketing Predictions 2017
Content Marketing Predictions 2017Content Marketing Predictions 2017
Content Marketing Predictions 2017
 
Digital in 2017 Global Overview
Digital in 2017 Global OverviewDigital in 2017 Global Overview
Digital in 2017 Global Overview
 

Similar a Vlog02 [eng sub]什麼是controller和如何在asp.net核心中創建controller?-what is controller and how to create controller in asp.net core-

與 Asp.net mvc 的第一次親密接觸 - twMVC#1
與 Asp.net mvc 的第一次親密接觸 - twMVC#1與 Asp.net mvc 的第一次親密接觸 - twMVC#1
與 Asp.net mvc 的第一次親密接觸 - twMVC#1twMVC
 
2015 年逢甲大學資訊系:ASP.NET MVC 4 教育訓練3
2015 年逢甲大學資訊系:ASP.NET MVC 4 教育訓練32015 年逢甲大學資訊系:ASP.NET MVC 4 教育訓練3
2015 年逢甲大學資訊系:ASP.NET MVC 4 教育訓練3Duran Hsieh
 
twMVC#02 | ASP.NET MVC 從無到有
twMVC#02 | ASP.NET MVC 從無到有twMVC#02 | ASP.NET MVC 從無到有
twMVC#02 | ASP.NET MVC 從無到有twMVC
 
Real World ASP.NET MVC
Real World ASP.NET MVCReal World ASP.NET MVC
Real World ASP.NET MVCjeffz
 
Struts快速学习指南
Struts快速学习指南Struts快速学习指南
Struts快速学习指南yiditushe
 
ASP.Net MVC2 简介
ASP.Net MVC2 简介ASP.Net MVC2 简介
ASP.Net MVC2 简介Allen Lsy
 
利用 ASP.NET MVC 提升您的 Web 應用程式
利用 ASP.NET MVC 提升您的 Web 應用程式利用 ASP.NET MVC 提升您的 Web 應用程式
利用 ASP.NET MVC 提升您的 Web 應用程式Chui-Wen Chiu
 
Introduction to ASP.NET MVC and MVC 5 Features
Introduction to ASP.NET MVC and MVC 5 FeaturesIntroduction to ASP.NET MVC and MVC 5 Features
Introduction to ASP.NET MVC and MVC 5 FeaturesJeff Chu
 
twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)
twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)
twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)twMVC
 
ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4
ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4
ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4twMVC
 
twMVC#10 | ASP.NET MVC Model 的設計與使用
twMVC#10 | ASP.NET MVC Model 的設計與使用twMVC#10 | ASP.NET MVC Model 的設計與使用
twMVC#10 | ASP.NET MVC Model 的設計與使用twMVC
 
ASP.NET MVC Model 的設計與使用 twMVC#10
ASP.NET MVC Model 的設計與使用 twMVC#10ASP.NET MVC Model 的設計與使用 twMVC#10
ASP.NET MVC Model 的設計與使用 twMVC#10twMVC
 
Struts Mitac(1)
Struts Mitac(1)Struts Mitac(1)
Struts Mitac(1)wangjiaz
 
ASP.NET Core MVC 2.2從開發到測試 - Development & Unit Testing
ASP.NET Core MVC 2.2從開發到測試 - Development & Unit TestingASP.NET Core MVC 2.2從開發到測試 - Development & Unit Testing
ASP.NET Core MVC 2.2從開發到測試 - Development & Unit Testing江華 奚
 
2016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練4
2016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練42016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練4
2016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練4Duran Hsieh
 
Visual studio 2012 與 asp.net 4.5 (新功能與開發介紹) 第一天
Visual studio 2012 與 asp.net 4.5 (新功能與開發介紹) 第一天Visual studio 2012 與 asp.net 4.5 (新功能與開發介紹) 第一天
Visual studio 2012 與 asp.net 4.5 (新功能與開發介紹) 第一天Gelis Wu
 
Uliweb cheat sheet_0.1
Uliweb cheat sheet_0.1Uliweb cheat sheet_0.1
Uliweb cheat sheet_0.1modou li
 

Similar a Vlog02 [eng sub]什麼是controller和如何在asp.net核心中創建controller?-what is controller and how to create controller in asp.net core- (20)

與 Asp.net mvc 的第一次親密接觸 - twMVC#1
與 Asp.net mvc 的第一次親密接觸 - twMVC#1與 Asp.net mvc 的第一次親密接觸 - twMVC#1
與 Asp.net mvc 的第一次親密接觸 - twMVC#1
 
2015 年逢甲大學資訊系:ASP.NET MVC 4 教育訓練3
2015 年逢甲大學資訊系:ASP.NET MVC 4 教育訓練32015 年逢甲大學資訊系:ASP.NET MVC 4 教育訓練3
2015 年逢甲大學資訊系:ASP.NET MVC 4 教育訓練3
 
twMVC#02 | ASP.NET MVC 從無到有
twMVC#02 | ASP.NET MVC 從無到有twMVC#02 | ASP.NET MVC 從無到有
twMVC#02 | ASP.NET MVC 從無到有
 
Real World ASP.NET MVC
Real World ASP.NET MVCReal World ASP.NET MVC
Real World ASP.NET MVC
 
Asp.Net Mvc 1.0
Asp.Net Mvc 1.0Asp.Net Mvc 1.0
Asp.Net Mvc 1.0
 
使用 Controller
使用 Controller使用 Controller
使用 Controller
 
Struts快速学习指南
Struts快速学习指南Struts快速学习指南
Struts快速学习指南
 
ASP.Net MVC2 简介
ASP.Net MVC2 简介ASP.Net MVC2 简介
ASP.Net MVC2 简介
 
使用 Controller
使用 Controller使用 Controller
使用 Controller
 
利用 ASP.NET MVC 提升您的 Web 應用程式
利用 ASP.NET MVC 提升您的 Web 應用程式利用 ASP.NET MVC 提升您的 Web 應用程式
利用 ASP.NET MVC 提升您的 Web 應用程式
 
Introduction to ASP.NET MVC and MVC 5 Features
Introduction to ASP.NET MVC and MVC 5 FeaturesIntroduction to ASP.NET MVC and MVC 5 Features
Introduction to ASP.NET MVC and MVC 5 Features
 
twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)
twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)
twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)
 
ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4
ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4
ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4
 
twMVC#10 | ASP.NET MVC Model 的設計與使用
twMVC#10 | ASP.NET MVC Model 的設計與使用twMVC#10 | ASP.NET MVC Model 的設計與使用
twMVC#10 | ASP.NET MVC Model 的設計與使用
 
ASP.NET MVC Model 的設計與使用 twMVC#10
ASP.NET MVC Model 的設計與使用 twMVC#10ASP.NET MVC Model 的設計與使用 twMVC#10
ASP.NET MVC Model 的設計與使用 twMVC#10
 
Struts Mitac(1)
Struts Mitac(1)Struts Mitac(1)
Struts Mitac(1)
 
ASP.NET Core MVC 2.2從開發到測試 - Development & Unit Testing
ASP.NET Core MVC 2.2從開發到測試 - Development & Unit TestingASP.NET Core MVC 2.2從開發到測試 - Development & Unit Testing
ASP.NET Core MVC 2.2從開發到測試 - Development & Unit Testing
 
2016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練4
2016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練42016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練4
2016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練4
 
Visual studio 2012 與 asp.net 4.5 (新功能與開發介紹) 第一天
Visual studio 2012 與 asp.net 4.5 (新功能與開發介紹) 第一天Visual studio 2012 與 asp.net 4.5 (新功能與開發介紹) 第一天
Visual studio 2012 與 asp.net 4.5 (新功能與開發介紹) 第一天
 
Uliweb cheat sheet_0.1
Uliweb cheat sheet_0.1Uliweb cheat sheet_0.1
Uliweb cheat sheet_0.1
 

Vlog02 [eng sub]什麼是controller和如何在asp.net核心中創建controller?-what is controller and how to create controller in asp.net core-

  • 4. # 什么是Controller? # 如何在ASP.Net Core里創 建Controller? # Controller的基本用法。 SernHao Tv
  • 6. Controller的基本用法。 ● Controller 處理 Http-Post (route data) and Http-Get (query-string) ● 接收从View得到的用户輸入的资料,然后给予特 定的反应。 ● 执行business rule和functions。 SernHao Tv
  • 8. Thanks for Watching 感谢收看 留言Comments SernHao Tv Like SernHao Tv Video 如何創建ASP.Net Core: 订阅 SernHao Tv, 每周观看新影片!
  • 10. 您好,我是SernHao Tv 的Sern Hao, 今天我想要跟您分享的是 "關於ASP.Net Core 里的 Controller"。 在這裡,我將深入淺出的為您解 說幾個關於ASP.Net Core 裡的 Controller 的幾個要點: 1)什麼是Controller? - 是在MVC裡的一個互動的 Class。 - 在MVC裡,View是用來顯示資訊。 Model是用來鏈接資料庫。而 Controller則是負責在View與Model之間接收和傳遞數據。 - 連接Model (或數據)和View。 2) Controller的基本用法。 (demo) - Controller 處理 Http-Post (route data) and Http-Get (query-string) - 接收從View得到的用戶輸入的資料,然後給予特定的反應。 - 執行business rule和functions。 3) 如何在ASP.Net Core裡創建 Controller。 (demo) - 在影片裡,我會講解有關 Controller如何被創建,以及一些主要的用途。 - 同時也會帶過Controller在ASP.net Core 裡的生命週期。 - 默認模板: "{controller=Home}/{action=Index}/{id?}") 【“/[Controller]/[ActionName]/[Parameters]”】 - 在 Solution Explorer里, 在“Controllers”的文件夹点击右键 > “Add” > “New Item...“ > 选择”MVC Controller Class“ - “Index”是在“Controller”上默認調用的方法, 附加的: 1) ASP.Net Core 是個.Net Framework,它使用.Net Framework 4.6. .Net Core 也可以算是C# 和MVC 1- 6 系列的一個很大的進步。而這裡的 ASP.Net Core 會使用的開發工具是 visual studio 2015。 2)在Visual Studio 2015中,您可以在更改程序並保存代碼後通過刷新瀏覽器以達到重新運行應用程序,而不用進行 debugging(Ctrl + F5)。 希望我的解说能帮到您。
  • 11. Hi, how are you? I'm Sern Hao from SernHao Tv, the topic I want to share with you is "About Controller in ASP.Net Core". Here, I will explain in simple terms for you to explain a few on the ASP.Net Core about Controller in a few key points: 1) What is the Controller? - is an interactive Class in the MVC. - In MVC, View is used to display information. Model is used to link the database. The Controller is responsible for receiving and transferring data between View and Model. - Connect Model (or data) and View. 2) Controller's basic usage. (Demo) - Controller handles Http-Post (route data) and Http-Get (query-string) - Receives the user input from View and then responds with a specific response. - Execute business rule and functions. 3) How to create a Controller in ASP.Net Core. (Demo) - In the video, I will explain how the Controller was created, as well as some of the main functions. - roughtly explain the life cycle of controller in the ASP.net Core. - default template: "{controller=Home}/{action=Index}/{id?}") [“/[Controller]/[ActionName]/[Parameters]”] - In Solution Explorer, right-click folder of “Controllers” > “Add” > “New Item...“ > select ”MVC Controller Class“ - “Index” is the default method that will be called on a “Controller” Bonus: 1) ASP.Net Core is a. Net Framework, which uses .Net Framework 4.6. ASP.Net Core can also be regarded as C # and MVC 1-6 series is a big step forward. Moveover, visual studio 2015 will use as development tool for create ASP.Net Core program. 2) In Visual Studio 2015, you can re-run your app by refresh the browser after changing and save the code without debuggin (Ctrl + F5) again.
  • 12. Reference 参考: 1. Visual Studio Code Tutorial for Beginners - CodeGeek https://www.youtube.com/watch?v=5WyJibE3ZK0 2. What is MVC? Model View Controller - HandsonERP https://www.youtube.com/watch?v=qXRcVhWxuaU 3. Introduction to ASP.NET MVC Part 1/3: What is MVC and why should you use it? - Roger Harford https://www.youtube.com/watch?v=YSHW9F2dtOY 4. Adding a controller - By Rick Anderson https://docs.asp.net/en/latest/tutorials/first-mvc-app/adding-controller.html