
Set up your development environment with the required software and packages to run the ASP.NET Core Razor Pages course smoothly.
Download and install SQL Server 2019 Developer Edition and SQL Server Management Studio, connect to a local server instance, and prepare to create a database and a Web API.
Explore dotnet core, the latest .NET release, and its benefits. Harness a free, open-source cross-platform framework for mobile, web, cloud, with strong performance and a built-in dependency injection container.
Explore Razor Pages as a lightweight, server-side framework in ASP.NET Core for building dynamic, data-driven websites with clean separation of concerns and cross-platform deployment.
Create a new Razor page under admin/blogs for adding blog posts, wire it to a code-behind class, and enable navigation from the admin dropdown to the page at /admin/blogs/ad.
Load blog posts from the database with constructor injection of the blog db context and display them in a bootstrap table on the list page.
Explore the repository pattern as a middleman between domain and data access, and implement a blog post repository with interface, CRUD methods, and dependency injection in ASP.NET Core Razor Pages.
Create an images API controller in a Razor Pages app, mark it as an API controller, and configure routing to api/images to support get and post methods for image upload.
Register to cloud energy, sign up for free, and configure the .NET SDK to upload images via the programmable media API using API key, secret, and cloud name.
Wire the image repository to its cloud energy implementation in asp.net core razor pages, test the upload via the controller, and return the image url or an error via postman.
Create a navigation property on the blog post domain model to relate it to tags, establishing a one-to-many relation, then run an EF Core migration and update the database.
Create a tag repository and fetch all distinct, lowercase tags from the database, then inject it into the home page and render them as bootstrap badges under the blog heading.
Install the Microsoft.AspNetCore.Identity.EntityFramework NuGet package, create an identity DbContext, and seed roles including super admin, admin, and user, along with a super admin user to enable authentication and authorization.
Create a register page in ASP.NET Core Razor Pages, with a form for username, email, and password, binding to a register view model and posting to identity user creation.
Create a login page in asp.net core razor pages with a username and password view model, authenticate via sign in manager, and update layout to show logout and username.
Implement a logout page and functionality using the identity sign in manager, perform async sign out, and redirect to the home page, while updating the layout to show the username.
Redirect users to the originally requested admin page after login by checking a return URL, ensuring they reach the blog list or post page instead of the home page.
Display comments for a blog post by fetching all comments from the repository, enriching them with usernames via the user manager, and rendering them on the Razor Pages detail view.
Build an admin Razor page to display all users by implementing a user repository, fetching IdentityUser data, mapping to a view model, and excluding the super admin from the results.
Create a bootstrap modal form to add a user (username, email, password), bind it to a Razor Pages model, and save with roles via a repository and user manager.
Implement server side validations on the register page with data annotations for username, email, and password; enforce required fields, email format, and minimum password length.
Implement server-side and client-side validations for the add blog post page, using data annotations, model state, and a custom business rule for the published date.
A Real-World .NET8 Web Application Using ASP.NET Razor Pages and Entity Framework and SQL Server database. This is a complete comprehensive course that uses the Razor Pages Framework to Build an ASP.NET Core Web Application written in C#.
This is a complete guide to Learning and Building scalable and data-driven websites using C# programming, ASP.NET, ASP.NET Core, and Razor Pages Framework.
If you have crossed paths with ASP.NET MVC or intend to learn ASP.NET MVC in 2024, then it's high time you invest your energy in ASP.NET Core Razor Pages instead. As Microsoft says, ASP.NET Core Razor Pages is the preferred approach to creating ASP.NET Web Applications.
If you have web development experience working with ASP.NET Framework or ASP.NET Core, then this course will provide you with the amazing knowledge you need to build page-centric data-driven websites using the popular ASPNET Razor Pages Framework.
This course is for all skill levels and is best suited for beginners and intermediate developers who have gained knowledge in C# and ASP.NET framework and want to use their skills to learn highly scalable websites using ASP.NET Razor Pages.
In this course, we will make use of ASP.NET Core i.e. .NET8 Razor Pages to build a complete blog application with multi-role user support (user and admin support).
During this course, you will gain so much experience with web pages and web components, I am confident that you will gain enough practical knowledge to create your own ASP.NET Core Razor Pages Web Applications.
If you want to create functional, generic, clean, and usable websites using ASP.NET, then this is the course for you.
In this course, you will learn and implement:
Learn And Create Your First ASP.NET Razor Pages Application
Create a fully functional, highly scalable, page-centric blog application
Repository Pattern in ASP.NET Core
Understand why is Razor Pages the preferred approach to build ASP.NET Core Web applications and how Razor Pages are much simpler and more intuitive than their old counterpart i.e. the ASP.NET MVC framework.
If you come from an ASP.NET MVC background, then this will be a good step forward in learning the latest Web technology that Microsoft gives us to build websites and that is ASP.NET Razor Pages.
Understand and learn the concepts of .NET8 and apply them using the ASPNET Razor Pages Framework
Domain Modelling
Entity Framework Code First Approach
SQL Server
Seeding the Database
CRUD operations using ASP.NET Razor Pages
Showing Notifications (ViewData, TempData, etc)
Routing in Razor Pages
Domain Models vs View Models
Authentication and Authorization
Multi-Role Authorization
Full User and Admin Support in the Blog Application
Rich Text Editor
Uploading Images To A 3rd Party Image Hosting Provider
Creating APIs within our Razor Pages Application and Call Them using Javascript
Server-Side and Client-Side Validations.
Create, Read, Update, and Delete using Entity Framework Core and SQL Server
Web Development Using Razor Pages in ASP.NET Core
Write Clean, Re-Usable Code