
Learn to build dynamic websites with ASP.NET MVC 5 using Razor, models, controllers, and views; apply Entity Framework migrations, data annotations, AJAX, and multi-language routing.
Explore ASP.NET MVC, Microsoft's latest web development framework that blends the MVC pattern with the dot net framework, and learn how models, views, and controllers connect to build web applications.
Download and install Visual Studio Express 2013, a free development environment for web, Windows desktop, and Windows phone apps, with options to download a small installer or DVD ISO.
Create your first ASP.NET MVC 5 application in Visual Studio by selecting the MVC template, configuring individual user accounts, building, and running to view the output in a browser.
Discover the ASP.NET MVC project structure, examining the data, start, content, controllers, models, scripts, and views folders, and see how shared layouts and partial views enable dynamic pages.
Create your first mvc 5 controller in visual studio with a default index action, and add the corresponding index view under views/[controller name] to render output.
Add a second action to an existing ASP.NET MVC 5 controller by creating a new auction action that returns an auction result and renders a view named after the auction.
Learn how the ASP.NET MVC routing system maps a URL to a controller, an action, and an optional id, with defaults and an illustrative example.
Learn how to use Razor to embed server-side code in ASP.NET MVC views, set view data, create loops, and render dynamic content with a markup syntax.
Learn how layouts simplify web page development by centralizing header, footer, and graphics while rendering dynamic content from views; explore the shared layout, render body, and sections such as scripts.
Explain partial views in ASP.NET MVC 5, create once and reuse across views, include in the default layout with Html.Partial, located in the shared views folder.
Pass data between actions and views using view data, view bag, and TempData in ASP.NET MVC, and persist data across requests with cookies.
Discover how the Entity Framework enables .NET data access via object-relational mapping, and explore code first, database first, and model first approaches for creating classes and databases.
Learn to implement a code first approach with Entity Framework by defining a student model, creating a data context, and scaffolding a controller and views for full CRUD operations.
Demonstrate how to use Entity Framework migration to update the database after changing models, including adding the Aids field, configuring migrations, and applying updates.
Enable automatic migrations in ASP.NET MVC 5 using code first and Entity Framework to update the database as models change. Configure migrations and enable data loss for seamless schema upgrades.
Explore implementing a one to many relationship between departments and employees in ASP.NET MVC 5 with Entity Framework, including virtual navigation properties, lazy loading, and a drop-down department selector.
Demonstrate implementing a many-to-many relationship between authors and books with entity framework in asp.net mvc 5, using models, view models, and checkbox UI to manage associations.
Convert the foreach loop to a partial view named _student_partial_view in the shared folder, use a single student as the model, and render it in the index view.
Demonstrate data annotation attributes in ASP.NET MVC 5 by validating worker and building models, formatting currency and dates, and configuring primary key, foreign key, one-to-many relationship, and not mapped properties.
Enable robust authentication in an ASP.NET MVC 5 application by implementing registration and login flows and wiring external logins (Google, Microsoft, Facebook, Twitter) via startup configuration.
Protect controllers and actions with the authorize attribute to require login, redirect to the login page, and optionally allow anonymous access for specific actions.
Apply the authorize attribute to protect controllers and the about the auction action, restricting access to a specific user or multiple users via the users property with comma-separated emails.
Apply the authorize attribute to protect controllers and actions and grant access to a specific role. Implement role-based access to the contact action in the home controller.
Explore programmatic user and role management in ASP.NET MVC 5 by building actions to create, modify, delete users and roles, assign users to roles, and list users and roles.
Learn to implement ajax calls in an ASP.NET MVC 5 app, returning json data and updating the user interface with server results.
Create a student model and an MVC web API controller with Entity Framework, then use jQuery Ajax to perform get, post, put, and delete operations and display results.
Implement multi-language routing in asp.net mvc 5 by adding a language parameter, setting a default language, and creating a layout language selector that preserves the current page when switching languages.
Demonstrates using resource files to enable multi-language content in an asp.net mvc 5 app, set the current culture, and display menu texts from resources.
In this course we will see how to create dynamic web sites using ASP.NET MVC 5. We will use Microsoft Visual studio Express 2013 in order to create ASP.NET MVC 5 projects. We will see how to create our own models, views and controllers and how to connect them in order to create powerful web sites. We will see how to use the razor syntax in order to combine c# code with html tags and how to split our views in layouts, views and partial views in order to have a better structured web site. We will use Code First development with Entity Framework 6 in order to store our data in a database and we will see how to use the Entity Framework migration in order to update our database when we change our models. We will see how to use manual and automatic migration in order to apply the changes to our database and we will make one to many and many to many relationship examples with real data in order to see a way of implementing these methods in ASP.NET MVC 5 using the Entity Framework.
We will also see how to enrich our models with Data Annotation Attributes in order to inform entity framework about how we want to store the information and how to validate the data that the user types in the html forms. We will use controller and action attributes in order to define who has permission to view a page. We will write code in c# in order to manage the users and roles for our site so that we will have full control of what is happening in our site.
We will see how to make AJAX calls in order to have asynchronous update for parts of our web page and we will use Web API 2 in order to automate the controller generation for data manipulation.
Finally we will also see how to make our sites Multilanguage by making changes to our site’s routing configuration and how to have Multilanguage contents using resource files.
We will cover all these features and a lot of other topics about ASP.NET MVC 5.
All the ASP.NET MVC projects that we are going to create in this course are available to download and they are organized in folders named after chapter number and movie number in order to give you the opportunity to jump at any video of this course in case you do not follow all the video from the beginning or if you made something wrong in a project and you want to continue without starting from the beginning.