Microsoft Q&A

Blazor

795 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

795 questions with Blazor tags

Sort by: Updated
0 answers

EF Core query for a specific condition in related entities and update parent entity

Hello there, In my Blazor Server application, I have Order and Order Details entities which are related as you can imagine. They both have their own repositories. public class Order { public int Id { get; set; } [Required] …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
425 questions
asked 2023-02-04T19:08:18.7033333+00:00
Cenk 686 Reputation points
commented 2023-02-04T22:34:23.1566667+00:00
AgaveJoe 17,216 Reputation points
0 answers

I do not know what happened in this code

this is a Blazor code that sends my friend to me and I do not know where I highlighted the code "x" what do , please explain me . thank you . @page "/" <table> <tr> <td>کد ملی:</td> <td…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 questions
asked 2023-02-03T06:40:45.2133333+00:00
hamed farjad 0 Reputation points
commented 2023-02-04T14:53:21.2+00:00
perfect code 161 Reputation points
0 answers

Blazor Server Castom Elements cross-domain

The Castom Elements function provided by the latest blazer server cannot put custom elements under websites with other domain names. Is there any way to solve the cross-domain problem

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,585 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.
795 questions
asked 2023-02-04T14:40:40.37+00:00
雨 时 0 Reputation points
edited the question 2023-02-04T14:43:11.3933333+00:00
雨 时 0 Reputation points
1 answer One of the answers was accepted by the question author.

Layout design for mobile and desktop (width, height and density)

I want to display data tables in an application on mobile as well as in the web browser or on the desktop and I want it to look appropriate. My idea is to show or hide the table columns depending on the width of the screen ( Note: I can open the row…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 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.
6,999 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,585 questions
asked 2023-02-02T19:10:53.21+00:00
perfect code 161 Reputation points
accepted 2023-02-04T14:39:08.6766667+00:00
perfect code 161 Reputation points
3 answers One of the answers was accepted by the question author.

Azure B2C AD with thousand subdomains

I have MS Azure B2C AD login setup in Blazor Server. The shared URL is https://login.subone.dev.mymaindomain.com. The redirect URL is https://login.subone.dev.mymaindomain.com/signin-oidc. It works perfectly. I have added another site:…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 questions
Azure Active Directory External Identities
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,712 questions
asked 2023-01-11T17:38:54.09+00:00
Andrey Kuznetsov 40 Reputation points
answered 2023-02-04T14:35:08.9933333+00:00
Christopher Tejeda 0 Reputation points
1 answer

BackgroundService - Is it possible to set parameter value?

Hi, I have a background service. I wonder if it is possible to set a parameter to this service from the Blazor Server application or in any other way? Thank you in advance.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,585 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.
795 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.
6,999 questions
asked 2023-02-02T16:43:45.4+00:00
Cenk 686 Reputation points
commented 2023-02-04T10:15:19.72+00:00
Cenk 686 Reputation points
1 answer One of the answers was accepted by the question author.

EF Core 6 - Adding records based on a condition

Hi friends, In my Blazor server application, I am inserting BulkPurchaseRequest records into DB as follows. public class BulkPurchaseRequestsRepository : IBulkPurchaseRequestsRepository { private readonly OyunPalasContext _oyunPalasContext; …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,585 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.
795 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
425 questions
asked 2023-02-01T17:33:09.4066667+00:00
Cenk 686 Reputation points
commented 2023-02-04T09:04:35.3033333+00:00
Cenk 686 Reputation points
7 answers

How to implement custom elements in blazor 7 (Practical guide) ?

Hi everyone As you know, one of the new features of blazor 7 is custom elements. But there is not enough references & guides which demonstrate how to implement this. for example, I want to create custom element in my blazor server app, then consume…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,585 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.
795 questions
asked 2023-02-03T16:39:26.1333333+00:00
Hamed Vaziri 56 Reputation points
commented 2023-02-04T08:50:25.5366667+00:00
Hamed Vaziri 56 Reputation points
0 answers

Unable to bind the selected image file in Blazor file upload

"This question is updated with minimal sample as my old question doesnt give more info" I am learning blazor and c# fundas with a simple app.This app will allow you tobrowse all kind of files including images.As all kind files we can browse, i…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,585 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.
795 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.
6,999 questions
asked 2023-02-04T02:38:07.29+00:00
RAMAN RAGAVAN 46 Reputation points
0 answers

how to indoor asset position show on building map? and how to track them? in asp.net core

how to indoor asset position show on building map? and how to track them? in asp.net core

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,585 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.
795 questions
asked 2023-02-03T09:29:30.3833333+00:00
Mohit S 1 Reputation point
3 answers

How to view and open pdf & images in blazor wasm?

Hi, I would like to make an application with blazor wasm that displays and opens pdf or image files (png...) found in the windows explorer. The problem is that under the windows explorer there are more than 100 000 files. The access to the directory is…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 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.
6,999 questions
asked 2021-10-27T08:22:00.103+00:00
sblb 831 Reputation points
answered 2023-02-03T08:56:41.13+00:00
GT 0 Reputation points
1 answer

PDF Viewer in Blazor Server

Hi guys, I want to retrieve data from the database and display it in PDF. Do you know any free PDF viewer that I can use? Can you please help. 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.
795 questions
asked 2022-08-27T17:00:18.813+00:00
Cenk 686 Reputation points
answered 2023-02-03T08:53:04.97+00:00
GT 0 Reputation points
1 answer

How to format razor pages in blazor in visual studio 2022

Hi, we are having problems with formatting after upgrade to visual studio 2022. In visual studio 2019 we could format our razor files pretty well, in visual studio it looks really bad. We cannot use 2019 anymore because of the .net 7.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 questions
asked 2023-02-02T09:09:50.9866667+00:00
Ante Gavranovic 0 Reputation points
edited an answer 2023-02-03T04:55:18.8766667+00:00
Zhi Lv - MSFT 18,881 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Auth cookie is deleted by the browser when it closes

I have a strange problem. When I close my browser (whether Chrome or MS Edge), my authentication cookie is deleted. Consequently, the next time I start the browser, I have to log in again. My controller looks like this: ClaimsIdentity claimsIdentity =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,585 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.
795 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.
6,999 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
610 questions
asked 2023-01-31T19:34:06.25+00:00
perfect code 161 Reputation points
commented 2023-02-02T18:52:06.9266667+00:00
perfect code 161 Reputation points
0 answers

Unable to find OpenReadstream in image upload functionality in blazor

Hi i am trying to get image url from selected images.The challenge i am facing here is i am not supposed to touch the  OnFilesChanged methode directly.I need to create a seperate class and access the original class items.How i can get image url of each…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 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.
6,999 questions
asked 2023-02-01T09:40:56.8366667+00:00
RAMAN RAGAVAN 46 Reputation points
commented 2023-02-02T13:45:39.17+00:00
AgaveJoe 17,216 Reputation points
0 answers

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.
795 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
73 questions
asked 2023-01-15T08:30:23.1666667+00:00
Michael Washington 791 Reputation points Microsoft MVP
commented 2023-02-02T13:14:14.0733333+00:00
jacob threadgould 6 Reputation points
1 answer

Blazor webassembly shows 405 error in localhost (and also when deployed to iis) when redirect back from payment website

I have created a blazor webaseembly project using .net 7. The blazor app redirects to an external url for payment. Once payment is done the payment status page(which is in the blazor app) should be loaded as that's the return url set while calling 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.
795 questions
asked 2023-01-27T11:08:51.96+00:00
Jayant Guru 0 Reputation points
edited the question 2023-02-01T04:58:36.69+00:00
Jayant Guru 0 Reputation points
0 answers

iText7 PDF generation help needed

Hello friends, In my Blazor Server application, I am generating a PDF like this. But requirements changed, I need to insert a table and logo like this sample. How can I manage it? InkedScreenshot 2023-01-31 at 19-47-25 Purchase Order -…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,585 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.
795 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.
6,999 questions
asked 2023-01-31T17:32:57.46+00:00
Cenk 686 Reputation points
1 answer

Why does the onclick event not work, in my razor pages hosted blazor component, in .net 7.0?

I've used the following code in multiple blazor web assembly applications hosted on a razor pages page under .net 5.0 and .net 6.0 before now. An application I was forced to upgrade to .net 7.0 has rendered the onclick command completely useless What…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,585 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.
795 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.
6,999 questions
asked 2023-01-19T00:23:45.6266667+00:00
The Acme Cheese Company 0 Reputation points
answered 2023-01-31T03:14:23.05+00:00
Bruce (SqlWork.com) 28,276 Reputation points
2 answers

Can Add-In include WebAssembly C# code

I wonder if Add-Ins supports C# WebAssembly / Blazor so I can code in C# and not only java script to develop a more sophisticated Add-in? If it is, I would like to know how I could use C# for an Add-In in Outlook to then be deployed in Marketplace.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 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.
6,999 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
1,970 questions
asked 2021-08-10T14:48:35.303+00:00
Gunnar N 1 Reputation point
answered 2023-01-30T16:58:50.1566667+00:00
Craig Callender 1 Reputation point