Content
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] …
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 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
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…


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:…


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.
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; …
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…


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…


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
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…
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.
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.


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 =…


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…


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 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…


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 -…
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…


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.

