
Explore the foundation of Darknet Core applications, using Visual Studio 2022 to build a .NET 6 Razor Pages project with Entity Framework Core, client and server validations, and TempData alerts.
watch a live preview of an asp.net core razor pages app hosted on azure, featuring category creation, editing, deletion, client-side and server-side validations, custom errors, and toast alerts with Tortugas.
Discover how ASP.NET Core Razor Pages (.NET 6) evolves from Web Forms and MVC to a cross-platform, cloud-ready framework with built-in dependency injection, open source, and improved performance.
learn how dependency injection uses a built-in container to supply shared services like email and database access to pages, reducing code duplication and enabling easy implementation changes.
Create a new Razor Pages web project in Visual Studio 2022 using .NET 6, configure solution and project names, and enable Razor runtime compilation for live updates.
Explore Razor pages in ASP.NET Core, isolating per-page logic with a page and page model, integrating models, views, and controllers within MVC, routing, action results, and tag helpers.
Explore the ASP.NET Core Razor Pages project file, focusing on property and item groups, the .NET 6 target framework, runtime compilation, and packages like SQL Server and Entity Framework Core.
Learn to configure an ASP.NET Core Razor Pages app using launchSettings.json profiles, manage static files in wwwroot, and use appsettings.json with environment-specific settings for secrets and connections.
Register services with dependency injection in the web application builder, add razor pages, and configure the request pipeline with middleware for development exceptions, static files, routing, authentication, and authorization.
Learn how razor pages map URLs to physical files in the Pages folder, with a default index.html and explicit routing logic.
Explore the Razor pages structure, including the underscore layout master page with header and footer, and how index and privacy pages render within it using partial views and tag helpers.
Create a category model using code first Entity Framework to define a database table with id as identity primary key, name, and display order.
Use data annotations to define primary keys and required fields in an EF Core model, and configure the database with a connection string and necessary packages for Razor Pages.
Add a default connection string in appsettings.json, using the server and database details with windows authentication. Configure a db context to use this string and enable entity framework.
Install Entity Framework Core and SQL Server packages, create a db context, and set up a category dbset with the connection string.
Configure Program.cs to register the deep context as a service, provide its connection string from configuration, and enable dependency injection for database interactions via the deep context.
Create a database by using migrations to scaffold the category table with an id identity primary key and display order. Run update database to apply migrations and track them in history.
Create a categories index page in Razor pages to display all categories using entity framework with dependency injection, retrieving data from the database without manual sql.
Display all categories in an ASP.NET Core Razor Pages app by iterating the categories model and rendering a Bootstrap table with name and display order.
Add a create category button on the categories index page using razor pages tag helpers to navigate to the create page, noting how a missing page affects the link.
Create a Razor page UI for categories, using a create model with a post form for name and display order, and style the page with bootstrap.
Create a category property in the page model and bind it to the UI with tag helpers, enabling model binding for category name and display order in the post handler.
Create a post handler in Razor Pages to receive a category object, add it via the application context, save changes, and redirect to the index page.
Switch Bootswatch Bootstrap themes using the new css and icons. Update the layout and navigation colors, align actions, and add validations to prevent insert errors.
Implement server-side validation for category creation using model state in ASP.NET Core Razor Pages, and display errors with tag helpers for clear feedback.
Learn to implement server-side custom validation in ASP.NET Core Razor Pages by using model state to add errors when name and display order match, and display validation summaries.
Learn to customize labels with the display attribute and enforce value ranges using the range annotation, including custom error messages and exploring other data annotations.
Enable client side validation in asp.net core razor pages with a shared folder's script partial and a script section; observe that server side validation still runs on post.
.NET Core has been evolving drastically and it is probably one of the biggest buzz word in the .NET Domain over few years! Even though .NET Core is more than 5 years old companies are just starting to adopt and transition applications to use .NET Core. This is an introductory course on ASP.NET Core with Razor Pages(.NET 6).
This course is for anyone who is new to asp.net core or who is familiar with ASP.NET and wants to take a first stab at understanding what is different in asp.net core (.NET 6).
Throughout this course we would understand the evolution of ASP.NET Core and then we would take a look at the modified files and folder structure.
We would build a application with CRUD operations using entity framework for integration with a database with asp.net core Razor Pages.
We will learn validations with .NET Core and learn basic concepts like partial view, integrating Toastr alerts, TempData and much more!
BONUS: We will also host our application on Azure! :) Because of time constraint I will have a link at the end of video that will take you to more few features that you will learn on this project!
This course will give you a solid foundation in no time as you will be confident to take on more complex projects that I teach in other courses.