Blazor Performance Optimization: Lazy Loading Guide

Blazor is a powerful framework for building interactive web applications using .NET. As applications grow in size and complexity, performance optimization becomes crucial. One effective technique to enhance performance is lazy loading. In this blog post, we will explore lazy loading in Blazor and understand how it can improve the loading speed and responsiveness of… Continue reading Blazor Performance Optimization: Lazy Loading Guide

Creating Static Images in Blazor: A Complete Guide

Blazor is a popular web framework that allows developers to create web applications using C# instead of JavaScript. It provides a simple, elegant, and efficient way to build client-side applications that run in any modern web browser. In this article, we will be exploring the creation of static images in Blazor. We will cover the… Continue reading Creating Static Images in Blazor: A Complete Guide

The Ultimate Guide to Blazor Forms and Validation 

This blog will explain how to implement Forms and Validation in Blazor. The EditForm component aids in the validation of webforms and data annotations. Let’s look at how the EditForm component handles data annotation validation. Consider the Student class file below. All of the class properties are marked with the [Required] attribute in this case.… Continue reading The Ultimate Guide to Blazor Forms and Validation 

Blazor Cascading Values and Parameters

This blog is going to explain how to pass values from parent component to child component. A cascading parameter and component is an easy way to flow data from parent to child components. Basic Cascading Parameter and Component I have created two components to illustrate the data flow Parent.razor and Child.razor. The following is a… Continue reading Blazor Cascading Values and Parameters

Basic Event Handling in Blazor

This article is to explain how event handling works in Blazor. The @on{event} attribute in Razor is the event handling attribute. The {event} may be any event. For example, For button @onclick is a click event. In checkbox @onchange is a change event it will trigger, when checking or unchecking the checkbox. The following is… Continue reading Basic Event Handling in Blazor

Turn on CircuitOption.DetailedError in Blazor

This article is going to explain how to enable CircuitOption.DetailedError in the development environment. Let us look at a small example. The following is the Blazor component code. It contains both HTML and @code block. GetArray() method is defined in the @code module. In it, the array is initialized with four elements.  Finally, arr [5]… Continue reading Turn on CircuitOption.DetailedError in Blazor

Static Image in Blazor – Inside and Outside Web Root

This article explains how to display a static image in the Blazor component. In ASP.NET Core  static files are served by Microsoft.AspNetCore.StaticFiles middleware. First, let’s look at the general way to display the image in the Blazor component. Inside the Web Root To display a static image in the Blazor component, first, it must store… Continue reading Static Image in Blazor – Inside and Outside Web Root