[training]Getting Started with ASP.NET MVC 5 – Adding a View

>Razor code註解符號 @*…….*@

>A controller class is where you write the code that handles the incoming browser requests, retrieves data from a database, and ultimately decides what type of response to send back to the browser.

>A view template should never perform business logic or interact with a database directly. Instead, a view template should work only with the data that’s provided to it by the controller. Maintaining thisseparation of concernshelps keep your code clean, testable and more maintainable.

>目前都是藉由Controller(藉由網址)傳遞資料給View(畫面呈現)

댓글 남기기

이메일 주소는 게시되지 않습니다. 필수 항목 표시 *

이 사이트는 Akismet을 사용하여 스팸을 줄입니다. 댓글 데이터 처리 방법 알아보기.