Jest Testing Advanced Tutorials With Live Example

Testing is a significant part of any software development. Testing helps detect the bug early and reduces the testing time. Earlier, we only focused on backend testing, but nowadays, there are a lot of frameworks available for fr…

Override Validation Classes in Blazor App Using EditContext

In this blog post, I will show you how to override the CSS in EditContext. For example, assume you already have the CSS classes for the error message. Then, when the blazor adds the validation error message, you want to overrid…

Preview an Image Before It Is Uploaded in Blazor Application

In this blog post, I will show you how to upload and preview the image in Blazor Web Application. Blazor out of the box provides a component InputFile that wraps the HTML file input element and supplies a [Stream for each file…

How To Access Device/Web Camera with Blazor

This blog post will show you how to access WebCam in the Blazor application. To access the web camera from the user machine, we will use the HTML5 video element and navigator API of the browser. Using blazor javascript intero…

Create Markdown editor in Blazor Application

Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML). Nowadays, Markdown is a very …

How can I use async with foreach in C#

This blog post will show you how to await the foreach loop in C#. Onwards c#, we can use async foreach in our code. To use async foreach, your method must return IAsyncEnumerable<T>. Let’s understand it with one example…

How to set the focus to an InputText element in Blazor

In this blog post, I will show you how to focus an input element in Blazor app. Let’s suppose you want when the user browser to your page you want that focus should be on the input control. I will show you two techniques to hand…

How to add a custom event to a Blazor component

In this blog post, I will show you one of the lesser-known features of the Blazor custom event. This feature allows us to map an event to a browser event and then connect to the C# code. Here I am going to build a textbox that …

How to show progress bar in Blazor while making Http Request

In this blog post, I will show you how to show the deterministic progress bar in Blazor Web Assembly. To achieve the goal, we don’t need any third-party library. C# already has one interface, IProgress , that exposes one method,…

تحميل المزيد من المشاركات
لم يتم العثور على أي نتائج