Search⌘ K
AI Features

Building Components Using Blazor Server

Explore how to build and refactor Blazor Server components that list, create, and edit customer data. Understand setting parameters, defining routable pages, and performing CRUD operations within a Blazor Server environment, enabling you to build interactive web UIs using C#.

Building a component

Now, we will build a component to list, create, and edit customers in the Northwind database. We will build it over several steps:

Step 1: Make a Blazor Server component that renders the name of a country set as a parameter.

Step 2: Make it work as a routable page as well as a component.

Step 3: Implement the functionality to perform CRUD operations on customers in a database.

Step 4: Refactor the component to work with Blazor Server and Blazor WebAssembly.

Defining and testing a simple Blazor Server component

...