Microsoft Q&A

Blazor

1,202 questions

A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.

Browse all .NET tags

1,202 questions with Blazor tags

Sort by: Updated
0 answers

chinese characters not displayed correctively in aspnetcore 8 Bazor web app

I have upgraded my Blazor Server App to aspnetcore8. After the upgrade, Chinese characters not correctively displayed when you view page source. see attached screen shot It is greatly appreciated if someone can help to solve the problem!

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,298 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,202 questions
asked 2023-12-01T12:14:34.8566667+00:00
Qun Shen 0 Reputation points
edited a comment 2023-12-01T14:44:23.9066667+00:00
Jalpa Panchal-MSFT 170 Reputation points Microsoft Vendor
1 answer

Razor Visual Studio Syntax Highlighting is no longer working

Hi I updated my visual studio to begin working with .NET 8. However, in doing so the syntax highlighting on my .razor pages has stopped working. Any advice on how to resolve this?

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,202 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,079 questions
asked 2023-12-01T10:17:13.7333333+00:00
Dylan O'Toole 0 Reputation points
commented 2023-12-01T14:06:14.5766667+00:00
Dylan O'Toole 0 Reputation points
0 answers

Maui webview .Navigated event is not triggered when source is a blazor website

Create a simple MAUI app with support for eg. android. On mainpage add a webview (NOT BlazorWebView): <StackLayout VerticalOptions="Fill" HorizontalOptions="Fill"> <WebView …

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,202 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,156 questions
asked 2023-12-01T13:58:15.9533333+00:00
Anders 0 Reputation points
0 answers

Dot Net 8 Blazor Webassembly not able to handle datatype

@foreach (var schemeSearch in schemeSearchList) { <div class="v-pipe"> <span class="heading">Expense Ratio % </span> <p class="value12 mb-2">@(schemeSearch.ExpenseRatio != null ?…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,760 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,202 questions
asked 2023-12-01T08:32:19.5066667+00:00
Jayant Guru 0 Reputation points
edited a comment 2023-12-01T12:37:56.5066667+00:00
AgaveJoe 1,500 Reputation points
0 answers

How to Monitoring and Navigating URLs in Blazor Maui with Social Authentication

I'm currently working on a Blazor Maui app using C# and integrating UAE Pass authentication. In my application, I need to monitor and navigate URLs within a Blazor page, such as Login.razor. I attempted to achieve this using an iframe, but encountered an…

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,202 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,156 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.
9,445 questions
asked 2023-12-01T06:06:18.66+00:00
Raju Gadda 66 Reputation points
edited a comment 2023-12-01T10:43:21.0733333+00:00
Raju Gadda 66 Reputation points
0 answers

How to use a blazor server app with a web api for authentication?

I've search the web for a simple tutorial for this but I can't seem to find this exact scenario. I have the following projects: WebApi This is a standard .NET 8.0 web api with individual accounts authentication. I've created everything using the…

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,202 questions
asked 2023-11-30T19:45:34.3966667+00:00
António Albuquerque 0 Reputation points
edited a comment 2023-12-01T10:40:13.8633333+00:00
António Albuquerque 0 Reputation points
0 answers

Using bitmaps from the stream as a source in video tag

Dear Gurus! I'm looking for a suitable way to use bitmap as a source in video . I receive a bitmap from a stream from a camera, convert it to the required format for display with OpenCVSharp. One of the approaches that I found is to use a javascript…

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,202 questions
asked 2023-11-30T20:29:09.87+00:00
commented 2023-12-01T09:09:34.0466667+00:00
Jerry Fu - MSFT 476 Reputation points Microsoft Vendor
1 answer

How to implement both a user registration and log in in a blazor webassembly asp.net core 8 using Azure AA B2C

I have followed this guidance: Secure an ASP.NET Core Blazor WebAssembly standalone app with Azure Active Directory…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,760 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,202 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
17,519 questions
asked 2023-11-21T13:48:50.3833333+00:00
risto l 0 Reputation points
commented 2023-12-01T08:18:50.8333333+00:00
risto l 0 Reputation points
1 answer

Blazor server app - sign out - reload warning messge after 230 seconds

we have a asp.net core mvc web application and added blazor server components and deployed to Azure App Service (Windows) its showing reload warning after 230 seconds. can anyone help/advise to resolve this issue?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,298 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,202 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,031 questions
asked 2023-11-30T14:02:20.6733333+00:00
Manokaran, Murugesan (Muru) 22 Reputation points
edited the question 2023-12-01T01:48:10.8833333+00:00
Tiny Wang-MSFT 1,466 Reputation points Microsoft Vendor
2 answers

How to pass data between a razor page (*.cshtml) and Razor component (*.razor)

How Do I pass data between a razor page (.cshtml) and a razor component (.razor). From a razor page (*.cshtml) I save some data using shared services and then I move to *.razor component using LocalDirect. I thought I would inject the service in *razor…

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,202 questions
asked 2023-11-27T00:19:42.1266667+00:00
Balu Raju 46 Reputation points
commented 2023-11-30T10:00:02.8533333+00:00
Qing Guo - MSFT 731 Reputation points Microsoft Vendor
1 answer

What is the safest (least dependencies) to log startup in a Blazor app on Azure

Hi all; When my Blazor app first starts, before the ILogger system is initialized (or fails initialization), I want to be able to log four things: The very first line in main() - so I know the app started. About to call builder.Build() If there was a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,760 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,202 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,031 questions
asked 2023-11-29T06:12:16.52+00:00
David Thielen 1,556 Reputation points
edited the question 2023-11-30T09:02:13.5133333+00:00
Qing Guo - MSFT 731 Reputation points Microsoft Vendor
1 answer

How to pass data between a razor page (*.cshtml) and Razor component (*.razor)

I have a situation where I have a razor page -sign.cshtml that handles OAuth by using PageModel's OnGetAsync and OnGetCallbackAsync Question #1 How can I do this alternatively just using Razor component (*.razor) instead of ".cshtml"? I also…

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,202 questions
asked 2023-11-27T00:15:46.0166667+00:00
Balu Raju 46 Reputation points
edited a comment 2023-11-30T07:29:43.62+00:00
Ruikai Feng - MSFT 1,676 Reputation points Microsoft Vendor
0 answers

MAUI Blazor support for Azure Communication Services

After reviewing the Azure Communication Services Documentation for making one-to-one video calls between two users I did not see any support for MAUI Blazor. What is the current recommended approach for building a video call application using Azure…

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
536 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,202 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,156 questions
asked 2023-11-30T04:05:32.8633333+00:00
74682213 0 Reputation points
1 answer

Is there a version number for Blazor apps?

Hi all; When I wrote Win Forms apps, there was an AssemblyInfo properties file with the app version number. We set up GitHub to increment that by 1 in each publish. And we then displayed that number in the about box. Does Blazor (server) have this? And…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,760 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,202 questions
asked 2023-11-29T06:10:17.7166667+00:00
David Thielen 1,556 Reputation points
answered 2023-11-29T08:38:50.0166667+00:00
Jalpa Panchal-MSFT 170 Reputation points Microsoft Vendor
1 answer

NET 8 MAUI Blazor: Login with Google Account

Hello to all Bard can't help me, he is in a loop and invents Nuget, which I am supposed to install in order to be able to log in to MAUI via Google Accoutn. But the Nuget does not exist in reality! ChatGPT only gives me outdated information. I can't find…

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
4,464 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,202 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,156 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.
9,445 questions
asked 2023-11-25T20:23:59.64+00:00
perfect code 271 Reputation points
commented 2023-11-29T07:22:47.7333333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 24,591 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

The type or namespace name 'RenderModeServerAttribute' could not be found (are you missing a using directive or an assembly reference?)

In .Net 8 preview version I was using below code in .razor file @using Server.Models; @page "/movies/signalr" @attribute [RenderModeServer] @inject HttpClient Http This is with blazor signalR render mode. But in the final release version of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,298 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,760 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,202 questions
asked 2023-11-26T12:36:07.1966667+00:00
Developer 60 Reputation points
accepted 2023-11-29T03:12:08.5366667+00:00
Developer 60 Reputation points
1 answer

How to implement third party OAuth in Blazor App

How to implement within Blazor server app a third-party OAuth. I know I can do that by creating a Razor View (.cstml) but I would like to see it done in razor component (.razor).

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,202 questions
asked 2023-11-27T02:31:33.13+00:00
Balu Raju 46 Reputation points
edited an answer 2023-11-28T18:59:26.91+00:00
Bruce (SqlWork.com) 48,481 Reputation points
1 answer

Read sheet2api with credentials

I am used sheet2api to convert spreadsheet to api. https://docs.google.com/spreadsheets/d/1lTfl1mwASBR2DYgtgaO48bxe5pu24RAYMbkcQ8wBoRU/edit#gid=0 https://sheet2api.com/v1/UHC796KdSvqC/testsp I used the below credentials. user id : test password…

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,202 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,156 questions
asked 2023-11-28T16:19:50.93+00:00
Maui Learner 80 Reputation points
answered 2023-11-28T18:41:03.2533333+00:00
Bruce (SqlWork.com) 48,481 Reputation points
1 answer

How can we get Microsoft's dependency Injection to resolve dependencies within razor files referenced using Microsoft's BlazorWebView within a WPF app?

I am using Microsoft.Extenssions.DependencyInjection to resolve dependencies. I am able to successfully inject dependencies into the MainWindow (I am keeping the scenario simple). But when I reference a razor file with dependencies using BlazorWebView,…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,553 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,202 questions
asked 2022-12-11T18:34:53.333+00:00
Owsen, Craig 21 Reputation points
commented 2023-11-28T16:38:05.0566667+00:00
Owsen, Craig 21 Reputation points
1 answer One of the answers was accepted by the question author.

2FA QR code is not generating in Blazor Web app.

using Blazor Web App template and authentication type as individual accounts, 2FA is not generating the QR code. Is this need to be fixed?

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
4,464 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,202 questions
asked 2023-11-16T06:15:23.6533333+00:00
Diwakar Devangam 20 Reputation points
edited a comment 2023-11-27T11:01:06.0566667+00:00
Diwakar Devangam 20 Reputation points