🗊 Презентация ASP.NET MVC 5. Part 1. Overview. Controllers. Views

Нажмите для полного просмотра!
ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №1 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №2 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №3 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №4 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №5 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №6 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №7 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №8 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №9 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №10 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №11 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №12 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №13 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №14 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №15 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №16 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №17 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №18 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №19 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №20 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №21 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №22 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №23 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №24 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №25 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №26 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №27 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №28 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №29 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №30 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №31 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №32 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №33 ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №34

Вы можете ознакомиться и скачать презентацию на тему ASP.NET MVC 5. Part 1. Overview. Controllers. Views. Доклад-сообщение содержит 34 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1


ASP.NET MVC 5. Part 1. Overview. Controllers. Views, слайд №1
Описание слайда:

Слайд 2


Agenda ASP.NET Architecture ASP.NET MVC 3, 4, 5 Controllers Views
Описание слайда:
Agenda ASP.NET Architecture ASP.NET MVC 3, 4, 5 Controllers Views

Слайд 3


MVC Pattern
Описание слайда:
MVC Pattern

Слайд 4


ASP.NET Architecture
Описание слайда:
ASP.NET Architecture

Слайд 5


Lifecycle of an ASP.NET MVC 5 Application
Описание слайда:
Lifecycle of an ASP.NET MVC 5 Application

Слайд 6


Benefits of ASP.NET MVC Higher quality requirements Test Driven Development Cross platforms support Windows, PDA, IPhone, … HTML code control Clear...
Описание слайда:
Benefits of ASP.NET MVC Higher quality requirements Test Driven Development Cross platforms support Windows, PDA, IPhone, … HTML code control Clear ULR navigation Maintainable code and command work

Слайд 7


What’s new in ASP.NET MVC 3 Extensible Scaffolding with MvcScaffold integration HTML 5 enabled project templates The Razor View Engine Support for...
Описание слайда:
What’s new in ASP.NET MVC 3 Extensible Scaffolding with MvcScaffold integration HTML 5 enabled project templates The Razor View Engine Support for Multiple View Engines Controller Improvements JavaScript and Ajax Model Validation Improvements Dependency Injection Improvements

Слайд 8


What’s new in ASP.NET MVC 4 ASP.NET Web API Enhancements to Default Project Templates Mobile Project Template and Empty Project Template jQuery...
Описание слайда:
What’s new in ASP.NET MVC 4 ASP.NET Web API Enhancements to Default Project Templates Mobile Project Template and Empty Project Template jQuery Mobile, the View Switcher, and Browser Overriding Task Support for Asynchronous Controllers Azure SDK Database Migrations Add Controller to any project folder Bundling and Minification Enabling Logins from Facebook and Other Sites Using OAuth and OpenID

Слайд 9


What’s new in ASP.NET MVC 5 One ASP.NET project template ASP.NET Identity Bootstrap Authentication filters Filter overrides Attribute routing
Описание слайда:
What’s new in ASP.NET MVC 5 One ASP.NET project template ASP.NET Identity Bootstrap Authentication filters Filter overrides Attribute routing

Слайд 10


What’s new in ASP.NET MVC 5.1 & 5.2 New Features in ASP.NET MVC 5.1 Attribute routing improvements Bootstrap support for editor templates Enum...
Описание слайда:
What’s new in ASP.NET MVC 5.1 & 5.2 New Features in ASP.NET MVC 5.1 Attribute routing improvements Bootstrap support for editor templates Enum support in views Unobtrusive validation for MinLength/MaxLength Attributes Supporting the ‘this’ context in Unobtrusive Ajax New Features in ASP.NET MVC 5.2 Attribute routing improvements

Слайд 11


Create ASP.NET MVC 5 Application
Описание слайда:
Create ASP.NET MVC 5 Application

Слайд 12


Adding a Controller
Описание слайда:
Adding a Controller

Слайд 13


Our New HelloWorldController
Описание слайда:
Our New HelloWorldController

Слайд 14


The App_Start/RouteConfig.cs File
Описание слайда:
The App_Start/RouteConfig.cs File

Слайд 15


Welcome Method with Parameters
Описание слайда:
Welcome Method with Parameters

Слайд 16


Matching the Route Parameter
Описание слайда:
Matching the Route Parameter

Слайд 17


Passing Parameters As Route Data In ASP.NET MVC applications, it's more typical to pass in parameters as route data than passing them as query strings
Описание слайда:
Passing Parameters As Route Data In ASP.NET MVC applications, it's more typical to pass in parameters as route data than passing them as query strings

Слайд 18


URL Route Mapping Features You can include "-", ".", ";" or any other characters you want as part of your route rules...
Описание слайда:
URL Route Mapping Features You can include "-", ".", ";" or any other characters you want as part of your route rules This would pass appropriate "language", "locale", and "category" parameters to a ProductsController: {language}-{locale}/products/browse/{category} /en-us/products/browse/food language=en, locale=us, category=food You can use the "." file extension type at the end of a URL to determine whether to render back the result in either a XML or HTML format products/browse/{category}.{format} /products/browse/food.xml category=food, format=xml /products/browse/food.html category=food, format=html

Слайд 19


Adding a View
Описание слайда:
Adding a View

Слайд 20


The View
Описание слайда:
The View

Слайд 21


Layout Page
Описание слайда:
Layout Page

Слайд 22


Layout Page The layout has access to the same properties the Razor view has, including: AjaxHelper (through the Ajax property) HtmlHelper (through...
Описание слайда:
Layout Page The layout has access to the same properties the Razor view has, including: AjaxHelper (through the Ajax property) HtmlHelper (through the Html property) ViewData and model UrlHelper (through the Url property) TempData and ViewContext To specify a layout inside a view, we can specify the layout to use with the Layout property:

Слайд 23


Razor View Engine an alternative to the Web Forms view engine is responsible for rendering views in the Razor format (either .cshtml files or .vbhtml...
Описание слайда:
Razor View Engine an alternative to the Web Forms view engine is responsible for rendering views in the Razor format (either .cshtml files or .vbhtml files) The Web Form view engine is used to support the older-format Web Form views (.aspx and .ascx files)

Слайд 24


The Fundamentals of the Razor Syntax ‘@’ is the magic character that precedes code instructions in the following contexts ‘@’ For a single code...
Описание слайда:
The Fundamentals of the Razor Syntax ‘@’ is the magic character that precedes code instructions in the following contexts ‘@’ For a single code line/values ‘@{ … }’ For code blocks with multiple lines ‘@:’ For single plain text to be rendered in the page

Слайд 25


The Fundamentals of the Razor Syntax HTML markup lines can be included at any part of the code: Razor uses code syntax to infer indent:
Описание слайда:
The Fundamentals of the Razor Syntax HTML markup lines can be included at any part of the code: Razor uses code syntax to infer indent:

Слайд 26


Passing Data to the View There are three different ways to pass data to a view: by using the ViewDataDictionary, by using the ViewBag, by using...
Описание слайда:
Passing Data to the View There are three different ways to pass data to a view: by using the ViewDataDictionary, by using the ViewBag, by using strongly typed views.

Слайд 27


ViewDataDictionary It isn’t recommended to use ViewDataDictionary You have to perform type casts whenever you want to retrieve something from the...
Описание слайда:
ViewDataDictionary It isn’t recommended to use ViewDataDictionary You have to perform type casts whenever you want to retrieve something from the dictionary.

Слайд 28


ViewBag It isn’t recommended to use ViewBag The ViewBag provides a way to pass data from the controller to the view It makes use of the dynamic...
Описание слайда:
ViewBag It isn’t recommended to use ViewBag The ViewBag provides a way to pass data from the controller to the view It makes use of the dynamic language features of C# 4 Set properties on the dynamic ViewBag property within your controller: A ViewBag property is also available in the view:

Слайд 29


Strongly Typed Views Views can inherit from two types by default: System.Web.Mvc.WebViewPage or System.Web.Mvc.WebViewPage Class WebViewPage provides...
Описание слайда:
Strongly Typed Views Views can inherit from two types by default: System.Web.Mvc.WebViewPage or System.Web.Mvc.WebViewPage Class WebViewPage provides a strongly typed wrapper over ViewData.Model through the Model property and provides access to strongly typed versions of the associated view helper objects - AjaxHelper and HtmlHelper

Слайд 30


Adding a Model
Описание слайда:
Adding a Model

Слайд 31


Passing Model to the View By specifying the model type using the @model keyword, view will inherit from WebViewPage instead of WebViewPage, and we...
Описание слайда:
Passing Model to the View By specifying the model type using the @model keyword, view will inherit from WebViewPage instead of WebViewPage, and we will have a strongly typed view

Слайд 32


Partials are intended to render snippets of content If you find yourself copying and pasting one snippet of HTML from one view to the next, that...
Описание слайда:
Partials are intended to render snippets of content If you find yourself copying and pasting one snippet of HTML from one view to the next, that snippet is a great candidate for a partial To render a partial we can use the RenderPartial method or the Partial method in a parent view

Слайд 33


Partial Views The partial name is used to locate the partial markup in the locations: \\.cshtml \Shared\.cshtml \\.cshtml \Shared\.cshtml In order to...
Описание слайда:
Partial Views The partial name is used to locate the partial markup in the locations: \\.cshtml \Shared\.cshtml \\.cshtml \Shared\.cshtml In order to prevent accidentally using a partial view from an action, we prefix the view name with an underscore Html.RenderPartial(...) renders the partial immediately to the response stream Html.Partial(...) returns a string In Razor, Html.RenderPartial must be in a code block

Слайд 34


Questions ?
Описание слайда:
Questions ?



Похожие презентации
Mypresentation.ru
Загрузить презентацию