1,635 questions with Blazor tags

Sort by: Updated
1 answer

How do I save file on form submit

Hello, As mentioned in the title, I want to save the file to the server. In the past, we were using SaveAs but in Blazor I can't get a reference of PostedFile directly. <div class="row pb-3"> <div class="col"> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,706 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,550 questions
asked 2024-12-27T16:34:04.0766667+00:00
Kuler Master 326 Reputation points
answered 2024-12-27T17:04:25.5666667+00:00
Bruce (SqlWork.com) 68,716 Reputation points
1 answer

How to solve the white page problem in blazor server.

When I start my blazor server application, the page content is displayed for less than a second, then I get a blank page. When I right-click inpect in the browser I get the code : <html> **<head></head>** …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
asked 2024-04-22T12:36:24.15+00:00
wilfried kinda 0 Reputation points
commented 2024-12-27T12:21:37.54+00:00
Flavian Laxenaire 0 Reputation points
2 answers One of the answers was accepted by the question author.

Blazor 8.0 NavigateTo throws an exception

Hello, I have a language selector that calls the following code and it works like a charm. On other hand, I want to change the language from within the MainLayout on Initialized event (async) but then the very same code throws an exception of type…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,706 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,156 questions
asked 2024-12-19T08:59:18.7133333+00:00
Kuler Master 326 Reputation points
accepted 2024-12-26T15:10:56.6233333+00:00
Kuler Master 326 Reputation points
1 answer

POST API Call Failing with 405 Error in Azure Static Web Apps

A Blazor WebAssembly app is configured to connect to a SQL database following the guidance in this article: How to host static web apps. The API status is healthy, and GET calls work as expected. However, POST calls to add records to the database return…

Azure SQL Database
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,021 questions
asked 2024-12-02T16:13:21.29+00:00
Shreyas Rastogi 225 Reputation points
commented 2024-12-26T05:42:44.04+00:00
ajkuma 27,851 Reputation points Microsoft Employee
1 answer

Adding Blazor Identity to existing Blazer project fails with a 'null path' exception

Hi! I have the following: .Net SDK 9 Visual Studio Community 2022 v 17.12.3 Windows v10.0.19044 Blazer Server App When I try to add the Blazor Identity "scaffolding" I get a "There was an error running the selected code generator:…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,316 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,156 questions
asked 2024-12-18T11:16:39.07+00:00
kodo65 0 Reputation points
commented 2024-12-25T08:20:56.4333333+00:00
Tianyu Sun-MSFT 31,961 Reputation points Microsoft Vendor
1 answer

How do I fix static assets not showing on implementing project with .Net9

Hi, I am having an issue in my app when trying to implement a Nuget package. My project has the following configuration: <ItemGroup> <!-- Include the JavaScript file in the NuGet package --> <Content…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
asked 2024-12-24T20:51:38.42+00:00
William Mendoza 0 Reputation points
answered 2024-12-25T06:58:28.9+00:00
Ruikai Feng - MSFT 2,586 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Error After Upgrading the Blazor Project WASM to .Net 8 to .Net 9

I got this errors While Upgrading my Blazor Web assembly Project to .Net 8 to .Net 9 Error Message=   Source=   Stack Trace:   at https://localhost:7123/_framework/dotnet.runtime.o8gq1i8bk6.js:3:96088 This Error  I got in console MONO_WASM:…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
asked 2024-12-24T05:47:54.8166667+00:00
Satyasai Gunnam 40 Reputation points
accepted 2024-12-24T09:54:09.16+00:00
Satyasai Gunnam 40 Reputation points
0 answers

js Static web assets in .net9 appera blank in the browser

I can navigate to my file from the browser but the file is blank. the reference in the obj folder is correct, and the file generated inside the .nuget folder is also correct and has all the methods, but when accesing the file from the browser it appears…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
asked 2024-12-22T15:37:39.5833333+00:00
William Mendoza 0 Reputation points
commented 2024-12-24T08:59:03.6233333+00:00
Ruikai Feng - MSFT 2,586 Reputation points Microsoft Vendor
2 answers

Blazor ValidationMessage being conditional

Hello, I have a registration form where the users can select if they are private or company. What I need is to make the Company Name validation conditional. Meaning, if they select a company it gets enabled and if they select a private it gets disabled.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,706 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,550 questions
asked 2024-12-03T11:08:10.6566667+00:00
Kuler Master 326 Reputation points
answered 2024-12-24T05:36:01.05+00:00
Ping Ni-MSFT 4,805 Reputation points Microsoft Vendor
2 answers

not getting values on form submit

@page "/login" @using System.ComponentModel.DataAnnotations <h3>Login</h3> <div class="card" style="max-width: 400px; margin: auto; margin-top: 50px;"> <div class="card-body"> <h5…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
asked 2024-12-21T14:00:11.6066667+00:00
Mayur Nagrale 0 Reputation points
edited the question 2024-12-23T02:07:09.8933333+00:00
Tiny Wang-MSFT 2,981 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Learning blazor, stuck on todo page

I was following the blazor learning path. I was on the 3. level: https://zcusa.951200.xyz/en-us/training/modules/build-blazor-todo-list/3-exercise-data-binding I created a Todo.razor page according to the instructions but when I run the project and…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
11 questions
asked 2024-12-19T10:03:14.88+00:00
Murat Şeşen 20 Reputation points
edited a comment 2024-12-20T06:09:19.7866667+00:00
Pradeep M 4,635 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Response status code: 500 login.js:18 Error: {"error":"Internal server error","details":"Login failed for user '<token-identified principal>'."}

i published a blazor web app in azure server. It starts normally but when i try to log in with the credentials and the logic i created locally (and worked) i get the error. This is my login,js: async function handleLogin(loginModel) { try { …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,097 questions
asked 2024-12-10T13:20:16.6666667+00:00
Stelios 20 Reputation points
accepted 2024-12-19T17:45:47.01+00:00
Stelios 20 Reputation points
1 answer One of the answers was accepted by the question author.

How to use EF Core with SQLite to update multiple records

The following code works to update the first matching record in a SQLite database, but the goal is to update all records that match TeeDate == myDateFormatted. I am trying to update multiple fields in a SQLite database with a single statement or a…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
768 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,011 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
asked 2024-12-18T15:46:08.55+00:00
Phil Cleveland 20 Reputation points
commented 2024-12-18T23:15:19.0733333+00:00
Phil Cleveland 20 Reputation points
2 answers

Minimal APIs in Blazor with RequireAuthorization() using Individual Account

In my .NET8 Blazor project, I added the Individual Account to manage the users. Now, in order to save the data in the database, I added some minimal endpoints like public static void MapClientEndpoints (this IEndpointRouteBuilder routes) { var…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,706 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
asked 2024-12-17T23:58:25.46+00:00
Enrico Rossini 196 Reputation points
edited an answer 2024-12-18T19:01:26.7366667+00:00
Bruce (SqlWork.com) 68,716 Reputation points
2 answers One of the answers was accepted by the question author.

Disable Information Logging

Hello, How do I disable the logging so I don't see those odd messages in the console (Google Chrome) ?? Whenever I run my blazor 8.0 app the following messages are displayed: Information: Normalizing '_blazor' to ' LINK Information: WebSocket connected…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,706 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
asked 2024-12-16T18:26:28.2633333+00:00
Kuler Master 326 Reputation points
accepted 2024-12-17T14:45:56.32+00:00
Kuler Master 326 Reputation points
1 answer

Solution: Custom SignalR Endpoints (Hubs) in a Blazor Server Application using Azure B2C When Deployed to Azure

Posting this in case I need it myself... Issue: Using custom SignalR endpoints (for example a /chat hub) with Authentication in a Blazor Server application that uses Azure B2C will not work when deployed. It will work fine on your local machine (using…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
151 questions
asked 2023-01-15T08:30:23.1666667+00:00
Michael Washington 916 Reputation points MVP
commented 2024-12-17T08:33:12.3766667+00:00
Hernando Zambrano 0 Reputation points
2 answers

Can a razor/Blazor navigation link to either?

I think I've run into another mistaken idea, but I want to double check to see if I am wrong. I had hoped that I could navigate to either a razor page (.cshtml) or a Blazor page (.razor) from the same _Layout.cshtml. Here's a code snippet illustrating…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,706 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
asked 2024-12-13T18:58:08.8833333+00:00
Falanga, Rod, DOH 260 Reputation points
commented 2024-12-17T05:47:34.6566667+00:00
Ping Ni-MSFT 4,805 Reputation points Microsoft Vendor
1 answer

Does using one registered app for two web apps only allow a user to login to one app at a time via EntraID?

I have two Blazor web app project: App1 & App2. Both of them are deployed to one Azure app service. App1 is deployed to root "/" and App2 is deployed to virtual application as "/app2". I'm trying to use one app registration, so…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,706 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,097 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,665 questions
asked 2024-12-05T20:22:14.7866667+00:00
Juwon Park 0 Reputation points
commented 2024-12-16T20:59:24.3566667+00:00
Bruce (SqlWork.com) 68,716 Reputation points
2 answers

Will my simple approach to migrating a Razor page to a Blazor component, work?

I've got another Blazor question. I started an [ASP.NET] Razor application a couple months back, because as I understood it at the time, it was the best way of getting to use Windows Authentication. And I know that it is possible to host Blazor…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,706 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
asked 2024-12-09T17:16:03.36+00:00
Falanga, Rod, DOH 260 Reputation points
commented 2024-12-13T21:17:14.29+00:00
Falanga, Rod, DOH 260 Reputation points
3 answers

How to Pass Parameters in Blazor

Hi, how can I use something like CommandParameter in Xamarin, but in Blazor for example: <div x-index="3" y-index="2"/> Then access them programmaticaly in C#. Thanks in advance

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,635 questions
asked 2024-12-07T10:00:54.7866667+00:00
Yusuf-3141 50 Reputation points
answered 2024-12-11T11:29:19.3966667+00:00
Yusuf-3141 50 Reputation points