Learn your way! Get started

MVC 5.2, Part 2: Views, Attributes, Identity, and Filters

with expert Eric Greene

Watch trailer

MVC 5.2, Part 2: Views, Attributes, Identity, and Filters Trailer

Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack
  • Power Pack Plus

Release date Release date 9/8/2014
Level Level Intermediate
Runtime Runtime 1h 47m
Platform Platform Major browsers on Windows Major browsers on Windows Major browsers on Mac OSX Major browsers on Mac OSX Mobile Devices Mobile Devices
Closed captioning Closed captioning Included
Transcript Transcript Included
eBooks / courseware eBooks / courseware Included
Hands-on labs Hands-on labs Included
Sample code Sample code Included
Exams Exams Included

Enterprise Solutions
Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More

Course description

In this course, you will be learning about many of the new features in MVC 5. We will learn about the new enhancements to MVC Views such as Enum Helpers and unobtrusive Ajax for the MaxLength and MinLength attributes. Another cool new feature bundled with MVC 5 is Attribute Routing. With several new attributes, we can easily configure routes directly on the controller and its actions. Next on the list is ASP.Net Identity. We will briefly explain what ASP.Net Identity is and review the default ASP.Net Identity code create by Visual Studio in new MVC 5 projects. Finally, we will discuss Authentication Filters and Filter Overrides.


The course assumes you are an experienced ASP.Net MVC developer. You should have experience with ASP.Net MVC 4.0 or later. You should have experience using Visual Studio 2012 or later to create Web Applications. Knowledge of HTML, CSS and JavaScript is essential for the sections of Bootstrap and ASP.Net MVC Views. You should have already viewed the MVC 5.2: OneASP.NET, Upgrading and Bootstrap before viewing this course.

Prepare for certification

This course will help you prepare for:
70-486 Developing ASP.NET MVC Web Applications
70-486 Developing ASP.NET MVC 4 Web Applications

This course will help you earn:
MCSD: SharePoint Applications
MCSD: Web Applications

Meet the expert

Eric Greene Eric Greene is an independent IT professional who loves learning new things, sharing what he learns, and helping clients to solve business problems. He holds a BS in Computer Science from the Virginia Military Institute and numerous software certifications including the Microsoft Certified Professional Developer certification. Eric has experience programming mobile, web-based, and desktop applications using a variety of commercial and open-source platforms including .NET, PHP, Node.js, Linux, Windows, SQL Server, SQLite, MySQL, Postgresql, and even a little MongoDB. He has worked with companies of all sizes, both on- and off-site, to help his customers meet their software development needs.

Course outline

View, Attributes and Identity

View Enhancements (30:21)
  • Introduction (00:17)
  • Enum Support in Views (00:31)
  • Using Enums in View Demo (00:24)
  • Demo: Enums in Views (03:31)
  • Demo: New Model (04:25)
  • Demo: Enums (03:30)
  • Demo: Enum Helper (02:03)
  • Demo: Select List (03:31)
  • MinLength/MaxLength (01:00)
  • MinLength/MaxLength Demo (00:17)
  • Demo: Min and Max Length (04:47)
  • Demo: Contact Form (05:52)
  • Summary (00:08)
Attributes (19:40)
  • Introduction (00:16)
  • Attribute Routing (01:31)
  • Attribute Routing Demo (01:09)
  • Demo: Attribute Routing (04:12)
  • Demo: Route Constraints (04:03)
  • Demo: Route Prefix (04:44)
  • Demo: Areas (03:26)
  • Summary (00:17)
ASP.NET Identity (20:57)
  • Introduction (00:33)
  • ASP.Net Identity (01:31)
  • ASP.Identity & OWIN (01:47)
  • Claims Based (01:40)
  • ASP.Net Identity Demo (01:49)
  • Demo: Identity (02:07)
  • Demo: OWIN Framework (05:14)
  • Demo: Third Party (05:54)
  • Summary (00:18)
Authentication Filters (28:39)
  • Introduction (00:13)
  • Authentication Filters (02:07)
  • Authentication Filters Demo (01:29)
  • Demo: Admin Controller (03:50)
  • Demo: Dashboard (05:02)
  • Demo: Simple Principle (03:08)
  • Demo: Filters (04:40)
  • Demo: Principle Object (03:20)
  • Demo: Code Controller (04:33)
  • Summary (00:12)
Filter Overrides (07:53)
  • Introduction (00:16)
  • Filter Overrides (01:28)
  • Filter Overrides Demo (00:09)
  • Demo: Filter Overrides (03:04)
  • Demo: Run Application (02:47)
  • Summary (00:06)