Latest Posts On Code Maze

Complex Model Validation in Blazor Applications

Complex Model Validation in Blazor Applications

In our Forms and Form Validation in Blazor article, we have learned how to validate a form using a non-complex model. But what about a complex model validation, is it the same process? Well, in this article, we are going to answer that question. We will learn how to...

Working with Binding in Blazor Applications

Working with Binding in Blazor Applications

In our Blazor WebAssembly series, we have talked about binding in Blazor and learned how to use one-way and two-way binding. In this article, we are going to learn even more about binding in Blazor applications and go deeper into the topic. Next to the one-way and...

Custom Validation in Blazor WebAssembly

Custom Validation in Blazor WebAssembly

In our Blazor WebAssembly series, we've already talked about Forms and Form Validation. There we learned a lot about creating and validating forms but there is still more to it. In this article, we are going to extend that topic by introducing a custom validation in...

CSS Isolation in Blazor Applications

CSS Isolation in Blazor Applications

Until the release of .NET 5, to be more precise .NET 5 Preview 8, we could've used only the global styles in the Blazor project. After the mentioned release, Microsoft added support for the CSS styles that are scoped to a specific component. This means that we can use...

How to Send an SMS with ASP.NET Core

How to Send an SMS with ASP.NET Core

In this article, we are going to cover how to send an SMS with ASP.NET Core. To accomplish this, we are going to use Twilio as our SMS service to send an SMS message and automate a response when an SMS message is received. To download the source...

Localization in Blazor WebAssembly Applications

Localization in Blazor WebAssembly Applications

In this article, we are going to learn how to implement localization in Blazor WebAssembly applications. We are going to start with a simple introduction to Globalization and Localization. Then, we are going to show you how to implement localization in Blazor...

Using Azure WebJobs in .NET Applications

Using Azure WebJobs in .NET Applications

It is a very common requirement for web applications to be able to run background tasks. Scheduling tasks to run at specific times or intervals, triggering jobs to run based on certain events, etc are common scenarios that we encounter while developing applications....

Global HTTP Error Handling in Blazor WebAssembly

Global HTTP Error Handling in Blazor WebAssembly

In this article, we are going to learn about handling HTTP errors in the Blazor WebAssembly application. We are going to start with a simple example, and then improve the solution until we implement global HTTP error handling with the Blazor WebAssembly interceptor....

Lazy Loading in Blazor WebAssembly

Lazy Loading in Blazor WebAssembly

In this article, we are going to learn how to implement Lazy Loading in Blazor WebAssembly. Lazy Loading enables us to improve the startup speed of our Blazor WebAssembly application by delaying the download of the resources we do not require yet. For example, if we...

Wrapping JavaScript Libraries with C# in Blazor WebAssembly

Wrapping JavaScript Libraries with C# in Blazor WebAssembly

Up until now, in this series of articles, we have learned how to call JavaScript code from C#, how to call C# code from JavaScript, and also how to extract a JS code and use it from the Razor class library. But all the time, we had to write some JavaScript code to...

How to Use Browser Functionalities with Blazor WebAssembly

How to Use Browser Functionalities with Blazor WebAssembly

There are a lot of browser functionalities that we can use in our Blazor WebAssembly application like local storage, session storage, offline/online status, etc. These can be quite useful, so in this article, we are going to learn how to use browser functionalities...

Elasticsearch in ASP.NET Core

Elasticsearch in ASP.NET Core

In this article, we are going to use the popular open-source search and analytics engine - Elasticsearch to power a simple search system in ASP.NET Core. To download the source code for this article, visit Elasticsearch in ASP.NET Core...

Using JSInterop to Pass HTML Elements and Handle JS Errors

Using JSInterop to Pass HTML Elements and Handle JS Errors

In the previous article, we've started a topic about calling JavaScript functions from C# and reached a certain point. Now, it is time to continue that story and explain more about using JSInterop to pass HTML elements to JavaScript functions in Blazor WebAssembly....

Deploying ASP.NET Core Web API to Azure API Apps

Deploying ASP.NET Core Web API to Azure API Apps

We have learned how to create an Azure Web App and deploy an ASP.NET Core app into it using Visual Studio in our Publishing an ASP.NET Core App to Azure App Service Using Visual Studio article. Then we looked at how to create an App Service from the Azure Portal and...