Calling public methods on Blazor component from another component

In this post, I describe how to expose methods in a component that can be used by other components in an ASP.NET Core Blazor application.

CSS isolation in Blazor - Gérald Barré

In this post, I describe how to use CSS isolation in an ASP.NET Core Blazor application. When creating a Blazor application or library, you'll create many components. A component can be used by other components. By default, the CSS of the site applies to the HTML generated by your component. There are some cases where you want to isolate the style of a component. Blazor now provides CSS isolation. This post explains how to use it and how it works!

Deploying ASP.NET Core applications to Kubernetes

In the first post in this series I described some of the fundamental Kubernetes resources that you need to understand when deploying applications, like pods, deployments, and services. In my previous post I described the YAML manifests that are used to define and create these resources.

Lazy load assemblies in a Blazor WebAssembly Application

In this post, I describe how to lazy load assemblies in a ASP.NET Core Blazor WebAssembly application.

Copying text to the clipboard in a Blazor application

In this post, I describe how to copy text to the clipboard in an ASP.NET Blazor application. A browser provides an API to write to the clipboard or read from it. Modern browsers implements navigator.clipboard to access the clipboad.

Anchor navigation in a Blazor application

In this post, I describe how to simulate the anchor navigation in an ASP.NET Core Blazor application. After loading a page, a browser automatically scrolls to the element identified by its id in the fragment part of the URL. It does the same when you click on an anchor with an href of the kind #element-id.

gRPC in ASP.NET Core - Ultimate Guide for Getting Started

Let's get introduced to gRPC in ASP.NET Core! This article will get you started with gRPC, what it actually is, how does it compare to REST Protocol, and really when to use it. Further, we will also go through a demonstration of working with gRPC in ASP.NET Core to get a complete working picture of this trending technology.

Implementing the Repository Pattern Using C# and Entity Developer in ASP.NET Core

In this article, take a look at implementing the repository pattern using C# and Entity Developer in ASP.NET Core. The basic objective of the Repository Pattern is to help you decouple the data access and business logic layers of an application. This article talks about how we can implement the repository pattern in C# and take advantage of Entity Developer to talk to the database.

Configuring resources : Deploying ASP.NET Core applications to Kubernetes

This is the second post in the series: Deploying ASP.NET Core applications to Kubernetes. Part 1 - An Introduction to Kubernetes. Part 2 - Configuring resources with YAML manifests. In this post I'll describe the manifests for the resources I described in the previous post: pods, deployments, services, and ingresses.

Splitting code and markup into different files when creating a Blazor component

In this post, I describe how to split markup and code into different files when writing an ASP.NET Core Blazor component.

Using Digital Signatures to check integrity of cipher texts in ASP.NET Core Razor Pages

This post shows how digital signatures can be implemented to check the integrity of cipher texts in ASP.NET Core Razor Pages. The cipher texts are encrypted with AES symmetric encryption and the key and the IV required to decrypt the texts are encrypted with asymmetric encryption using RSA certificates with a key size of 3072.

Using a web camera with fun filters in your ASP.NET Core Blazor WebAssembly application

In this article, we will build a small Blazor WebAssembly app that can use your PC or laptop's web camera, and maybe apply some fun filters to real-time images.

The .NET Docs Show - Exploring ASP.NET Core + Vue.js with Matt Millican

Community member Matt Millican joins the panel to talk about building frontends with ASP.NET Core and Vue.js. The .NET Docs Show - Exploring ASP.NET Core + Vue.js with Matt Millican. Vue.js is an open-source model–view–viewmodel JavaScript framework for building user interfaces and single-page applications. Vue uses an HTML-based template syntax that allows binding the rendered DOM to the underlying Vue instance's data.

Deploying ASP.NET Core applications to Kubernetes

In this post I describe some of the basic concepts that you'll need to be familiar with to deploy ASP.NET Core applications to Kubernetes.

Hosting ASP.NET Core with SmarterASP.NET - FREE 60 Days Trial!

In this article, let's learn about Deploying / Hosting ASP.NET Core with SmarterASP.NET, a Superior Hosting Service for ASP.NET Core 3.x. We will also go

Optimizing a Blazor WebAssembly application size - Gérald Barré

The size of a Blazor WebAssembly application is important to reduce the loading time. Indeed, like any website, the page including all resources must be loaded before the user can use your application. If there are less things to download, it should load faster.In this post, I explain a few tricks to reduce the size of a Blazor WebAssembly application.

Integrate IdentityServer with AspNet Core

In Part 1, Part 2, Part 3, and Part 4 we touched upon various aspects of configuring IdentityServer, OAuth, and OIDC configuration in ASP.NET Core Web API and MVC applications. Although our sample application is working as expected, it stores all the IdentityServer related configuration in-memory. In a more realistic app you would like to store the configuration in some persistent data store such as SQL Server database. In this part we will do just that.

Getting Started with GraphQL in ASP.NET Core - Complete Guide

In this article, let’s talk about the trending GraphQL, a super cool tech built by Facebook which is now open-sourced. We will compare with REST API and understand the use case of GraphQL. We will also build a small prototype that demonstrates the integration of GraphQL in ASP.NET Core. You can find the source code at the end of the article. Let’s get started! Getting Started with GraphQL in ASP.NET Core - Complete Guide

Should you unit-test API/MVC controllers in ASP.NET Core?

In this post I discuss unit testing of API/MVC controllers in ASP.NET Core and some of the difficulties you face.

Symmetric and Asymmetric Encryption in .NET Core

This post looks at symmetric and asymmetric encryption and how this could be implemented in .NET Core. Symmetric encryption is fast and can encrypt or decrypt large amounts of text, streams or file