Category "blazor"

How to re-render Blazor component when a parameter changes

I have two Blazor component. First component just displays the list of students from a JSON api <select @onchange="selectStudent"> @foreach(var student

Blazor Timer call async API task to update UI

I am setting up a timer in a Blazor server-side page. The goal is to call an API every x seconds and based on the return value, update the UI. I got this code:

Blazor WASM redirect to login when not authenticated - Don't show layout

I have a Blazor WASM having 2 layouts: MainLayout LoginLayout My main Index file has an Authorized attribute @page "/" @using Microsoft.AspNetCore.Authorization

ASP.NET Core MapFallbackToFile is not handling non-existings urls. Only homepage

I am creating Blazor app. If I navigate to homepage - page loads fine, then I navigate into article e.g. localhost/new-article. Next step is page refresh via F5

"WriteLinesToFile" task was not given a value for the required parameter "File"

Error MSB4044 The "WriteLinesToFile" task was not given a value for the required parameter "File". BlazorTutorial.Client C:\Program Files\dotnet\sdk\5.0.

Blazor Hybrid App how to navigate to pages

How can I navigate between Razor pages in an Blazor Hybrid App? I found this explanation: https://docs.microsoft.com/en-us/aspnet/core/blazor/hybrid/routing?vie

Blazor Debugging not hitting breakpoints

I am taking over maintenance of an ASP.Net Hosted WebAssembly project. Cannot debug it. I have added "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_fr

Getting SSL error "Unsupported protocol" when running in Visual Studio

I am trying to build a Blazor application and I always get the following error : "This site can’t provide a secure connectionlocalhost uses an unsupported

Create and download Word file in Blazor

I am trying to create a Word file and download the created file in clients browser. The creation part seems to work fine and I can open the file manually from i

OpenCV with Blazor WebAssembly?

I'd like to build a web app with Blazor WebAssembly and do some image processing on the client side with OpenCV. I'm having difficulty using OpenCV on the clien

Blazor Component not updating UI when method is invoked by other component

I have 3 components. When I want is to call the New() method of component C from component B. That works with following code (I get the Console.Writeline). But

Blazor client side verify internet connection status

Is it possible to know when the user loses the connection with the server for any kind of reason: no internet connection, server down, so on. I know this is al

Making request without refreshing page with blazor

Please i am new to blazor, I am building a pet project and i want to make a call to the server to do so validation if the text entered into an input textbox is

How to add a digital signature in devexpress blazor

I want to add a digital signature field in a form[razor page] how can i add a digital signature in a razor page in devexpress blazor app <DxFormLayoutItem C

Detecting server pre-rendering in Blazor server app

Is there any way to detect the pre-rendering is going on in a Blazor component from the OnInitializedAsync life cycle method? I know the component workflow woul

How do you create a component that allows the consumer to extend the interfaces for parameter inputs?

This may be a dumb question, but my search so far has come up short and I worry I might have too specific of a use case to find a clear answer anywhere else. I

Is there a way to show file uploading progress bar when uploading a file from a blazor WebAssembly (WASM) to a ASP.NET Core server (blazor hosted)

As the title says, I'm looking for a way to inform users about the file upload progress of a file uploaded from the Blazor WebAssembly (WASM) client to the serv

Razor components - cascading parameter values

How do you pass a reference to the parent RenderingFragment to the child component/content when creating a razor component in c# (NOT using .razor) ComponentBas

Show an image stream to client in blazor server without javascript?

Right now i have the following lines of code: private async Task SetImageUsingStreamingAsync() { var imageStream = await GetImageStreamAsync(); var dotn

How to refresh web page after database update in ASP.NET CORE with Blazor

I'm making a small room booking web app and I would like to have the web page refresh on a given interval; ie a given minute or when a change has been done to t