How to use wkhtmltopdf Rotativa ViewAsPdf in Blazor Server
I would like to use Rotativa.AspNetCore.ViewAsPdf("~/Views/MyView/PDF.cshtml", model)in Blazor Server the same way I do in regular ASP.NET CORE MVC apps.I installed the "Rotativa.AspNetCore" nuget in...
View ArticleBlazor Hybrid App - Devices and Web deployment
I want to start a new project and I'm planning to use Blazor Hybrid App (.Net MAUI + Blazor).My main question is, can I "extract" the Blazor App to deploy it as a normal Website?I would like to have...
View ArticleDatabase connection error only when I call await...
Im building an app, where I want it to show a list of managers when you're going to register a new user, but i'm facing a pretty annoying problem:My database connection it's working perfectly fine, I...
View ArticleBlazor WASM (PWA) is not working on chrome in iPhones
It works in Chrome on all Android devices and Windows devices and also Macintosh devices, however, it didn't work in Chrome on iPhones.
View Articleblazor project when publish IIS,then show razor.js not found
This is the case. I use blazor ssr written in .net7.0. There is a page composed of razor and razor.js. There are no exceptions in local debugging. After publishing to IIS, it prompts that the js file...
View ArticleBlazor AuthenticationStateProvider throw exception after...
I am getting following exception in browser logs. blazor.web.js:1 [2023-12-07T18:37:52.343Z] Error: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at...
View ArticleError Encountered When Dynamically Adding Attribute to Razor Component in C#...
I have a Differ_Board.razor file with the following content:<div class="dsb-container" draggable="true"><BoardHeader></BoardHeader></div>@code { [Parameter] public DashBord_Info...
View ArticleHow to trigger update from Blazor embedded page call
Sorry I don't know what it's called, but from a razor page (Files.razor) I embed another page using something like <AddFile ContainerID="@ID" DocType="3" />. AddFile.razor is a utility method...
View ArticleNavigationManager not navigating to a page if the url is the same exept the...
I am building a .NET 6 MAUI Blazor application. The application has a top nav that lets the user go to their profile from wherever in the application he may be in that moment.Using navigation manager...
View Articleblazor webassembly local storage empty on application restart
I use Local Storage in my Blazor application, and when opening/closing my browser it saves perfectly. But when I restart my application, my Local Storage suddenly becomes empty. Any ideas?I tried...
View ArticleSaving camera permission when accessing camera via Javascript and MAUI on iOS
I want to create an iOS app using MAUI and WebView. I have a website, which uses the camera. The program is running nicely, but the user needs to accept the camera permission everytime the Javascript...
View ArticleBlazor server .NET 8 and Blazorise
I have a problem with Blazorise.I started a Blazor Server project. I replaced layout files with the same from Blazorise WASM template.It works but the sidebar is not visible (it is rendered on...
View ArticleCreate custom sidemenu in blazor with abp
im trying to create a sidemenu beside the exsiting one , my layout demands a secondary sidemenu that i want it to use the same functionaliy of exsitsnig MainMenu , MenuProvider , and IMenuManager.i...
View ArticleHow to animate state transitions in Blazor?
In my Blazor components I often render components based on either a conditional statement, e.g. @if (_contact.IsCustomer){<SalesOrdersList Customer="@_contact" />}Or from a loop, e.g.@foreach(var...
View ArticleMAUI Blazor Hybrid Specified RuntimeIdentifier is not recognized on Class...
Whenever I use the following steps to publish my MAUI Blazor Hybrid project, I get an error.Steps to reproduce:Build -> PublishSideloading as distribution methodSigning method: self signed:Release...
View ArticleHow to access appinfo in mudblazor layout
I am working on blazor application where I have to show my app info and app build version below the html Lang tag. But the appinfo is not accessible over layout.I have tried to access it through by...
View ArticleASP.NET Blazor Update the UI for a particular user using his ASPNerUserID
There is only 1 similar question in SO and it does not have any answer, only opinions and comments. Please study below image which more or less shows my question. Below the image, I explain further.We...
View ArticleHow to ensure blazor executes after wasm loads?
I created a new project from the new template Blazor Web AppThis file is in the BlazorProject.Client projectThe code below sometimes results in this rendered html upon initial website debug:WASM:...
View ArticleBlazor, .Net 8 and Global Interactivity issue with Identity
I have been playing around with the new .Net 8 Blazor templates and ran into a problem with Identity and setting a global InteractiveServer render mode. The change I made was in the App.Razor file to...
View ArticleWhat is the proper way to Authenticate and Authorize with Blazor WASM
So I've been interested in SPAs as of recently, and the one that seems most interesting to me is Blazor WASM.The idea was to create an API which generates a JWT token and sends it back on a successful...
View Article