Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Browsing all 4275 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

MudBlazor LoginForm not working in .NET 8, MudBlazor 8.6.0

So I'm completely new to .NET/C# and I'm trying to build a simple web-app connected to a database.Somehow I just can't get it to work with MudBlazor:Problem:When I input text into my LoginForm, the...

View Article


Image may be NSFW.
Clik here to view.

"The program 'NNN.exe' has exited with code 3221226356 (0xc0000374)" Error...

I have initialized the empty solution and added the ".NET MAUI Blazor Hybrid and Web App" type project:I have not touched the source code yet.Once I have launched the debugging of Native Windows...

View Article


MultiSelectList System.ArgumentNullException: 'Value cannot be null....

I am trying to show files in a list so that they can be selected by the user.The Append method on Items of type MultiSelectedList is throwing an error: 'Value cannot be null'.Which value is null? The...

View Article

Raise an error from child component on text edit and catch it in the parent -...

We have a parent component and a child component :I want to raise an event from the child (on text entering), catch it in the parent and do some actions.In child component (razor) :<InputText...

View Article

Image may be NSFW.
Clik here to view.

How to I add a Razor page to a Blazor project?

I've been trying to add in some Razor pages *.cshtml into a blazor project. But when I try to access the page I get a 404 not found.To reproduce what I'm facing, I create a blank new blazor Web app...

View Article


Blazor pages: how to use BuildRenderTree to add dynamic content

Background: We run dozens of sites for clients; all use an identical code base (ASP.NET WebForms) but completely different designs. Page structure is generated programmatically from SQL Server...

View Article

Use MudBlazor MudDataGrid ServerData to load paged data from an API

In my opinion the documentation for MudDataGrid is a bit lacking when it comes to loading paged data from a dynamic source such as an API.How do I use the ServerData attribute?How do I handle row...

View Article

Values from the form are not being passed to...

When I fill in the following form located in Pages/AddCustomer.razor, the values are cleared when I click "save" and the above error messages are displayed from Customer.cs.I have created a test Blazor...

View Article


How can I display a window alert in Blazor within my try-catch block with the...

I have created an application in Blazor with C#, JavaScript, HTML and CSS and would like to receive a pop-up with the message from the try-catch block in case of an error, like this:try{ // Here is my...

View Article


How to use alert(),confirm() and prompt() function using Blazor?

I'm learning the Blazor technology. I started a default increment project in VS 2019 and I have modified the code for Decrement with confirm() and alert but it does not work. @page...

View Article

Image may be NSFW.
Clik here to view.

using javascript modules in Blazor

I would like to organize javascript code in modules in Blazor.I followed some javascript tutos on this topic, but it is not to working in blazor.Here is a simple example.Starting from a blazor...

View Article

Multiple endpoints error using YARP to migrate from WebForms to Blazor

I am migrating a .NET 4.8 webforms app to a .NET 8.0 Blazor server application using YARP to handle routing requests between the webforms and Blazor app. I have run into a routing issue that I am quite...

View Article

.NET Maui Blazor web assembly, on Windows, what capabilities do I need to...

This question is specifically for Windows. I have a .NET Maui Blazor web assembly app that accesses a SQLite database located in FileSystem.AppDataDirectory.More specifically, the base path to my db is...

View Article


How can I prevent SqlException (0x80131904): Login failed for user on .NET 8...

I am using the .NET 8 Blazor web app template. I have been programming locally for a while with no issues. I recently tried to deploy my web app to azure, however I keep running into an...

View Article

Blazor InputCheckbox @onchange event not working

I have a Blazor form on a .RAZOR page:<EditForm Model="@myModel" OnValidSubmit="@doThis"><InputCheckbox class="someClass" id="someId" @bind-value="booleanValue"...

View Article


C# attribute generates a CS0182 error when invoked with an array

My web app (in Blazor) is handling roles authorizations this way:Headers of the Blazor page (razor file):@attribute [AuthorizeRoles(ERole.MyRole1, ERole.MyRole2)]This syntax works fine.With...

View Article

Refresh access token Blazor InteractiveServer render mode?

So I needed to use per page render mode in this Blazor project, most of which are InteractiveServer. In a particular page I would like to swap between InteractiveServer and InteractiveWasm manually, at...

View Article


Blazor Wasm standalone basepath not working

I’m having trouble setting my basepath in a newly created Blazor Websassembly standalone app in .NET 9.I’ve set<base href="/test/" /> in the index.html file, but when I run the application...

View Article

How to resolve error: "Could not find 'ChartJsInterop.setupChart'" - When...

Im trying to use ChartJsBlazor with my Blazor WebAssemply project in Visual Studio and I've pretty must just copied the guide from the "Getting Started" section...

View Article

Image may be NSFW.
Clik here to view.

Validation rules are met but Blazorise doesn't think so

I want to do a register page using Blazor Server + Blazorise for UI. In my RegisterUserDto class i have fields with data annotations that should be displayed in UI:public class RegisterUserDto{...

View Article
Browsing all 4275 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>