How can I change the value in EditForm by code?
Here is the html:<EditForm Model="Input" method="post" OnValidSubmit="LoginUser" FormName="login" Enhance><DataAnnotationsValidator /><div id="SubmitDiv"><InputText...
View ArticleWhy can't I log in when interacting with the controller?
The framework I am using is .Net 8 Blazor Web App. And the authentication is based on Microsoft.AspNetCore.Identity.EntityFramework .I want the ValidationMessage dynamic update but...
View ArticlePassing parameters to anonymous javascript function in Blazor
I am building an app that requires the use of the TradingView advanced chart widget but I want to be able to pass a parameter into the options. This is what the code looks like from the website.<!--...
View ArticleHow do I call a method from a static context within a renderfragment Blazor
I have this renderfragment that I am assigning as a menu and I need to be able to clear the list from within this renderfragment and I can't seem to get it to work. I have tried event callbacks,...
View ArticleHow can I use MD5 in Blazor WASM when it is deprecated?
In a .NET 8 console app, this code works:using var hasher = MD5.Create();var bytes = Encoding.UTF8.GetBytes("Hello world!");var hashBytes = hasher.ComputeHash(bytes);var hashHex =...
View ArticleHow to access the wwwroot of a Blazor application running on Linux with Nginx...
I'm a beginner in using Blazor, and for study purposes, I decided to set up a small server Raspberry Pi with Raspberry Pi OS Lite 64 Bits, .Net Core 8.0, Nginx, and Kestrel.I successfully deployed a...
View ArticleBlazor Hybrid .apk application works with gRPC in Debug mode but gives error...
My Blazor Hybrid application has a login screen. When user enters his data and taps a button, the data is sent to the server via gRPC service.When the application runs in Debug mode I see no errors and...
View ArticleWhy does my Entra MSAL flow work for log in, but I get a 404 when logging out?
I am having a strange issue. I am using MSAL 2 with an Entra Customer tenant, and users can log in, but cannot log out.Here's my sample configuration, which I had to change from the original...
View ArticleBlazor - How to execute the form submit in Button click using ICommand
How to execute the form submit in Button click using ICommandHow to pass parameter in ICommand execute@using System.Windows.Input<button @onclick="buttonClick"> Blazor Button</button>@code...
View Article.Net MAUI Hybrid - PDF preview in Windows and MAC
I tried .NET MAUI hybrid app for file preview. In windows used base64 string but that method not worked in MACI need solution for how to file preview in .Net MAUI hybrid . documents are PDF,...
View ArticleHow to navigate in a WPF Blazor Hybrid app
I created a WPF Blazor Hybrid app using the tutorial:https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/wpf?view=aspnetcore-8.0The app's working fine and is starting with a...
View ArticleWhat to use instead of Blazored-FluentValidation?
I am currently using Blazored-FluentValidation version 2.0.3. When upgraded to 2.1.0 got following bug: https://github.com/Blazored/FluentValidation/issues/194Is there another fluent validation library...
View ArticleBlazor jsInterop addeventlistener for online works but not for offline
I have this js interop:window.interop = { registerOnline: function (instance) { window.addEventListener('online', (e) => { instance.invokeMethodAsync('CallSync'); }); }, registerOffline: function...
View Articlehow to re-render a MudBlazor MudDataGrid after a database update from a modal...
I'm using the MudDataGrid with a data edit function from a modal popup (Blazorise.Modal). Clicking a button on a row retrieves an instance of that data (single record) and puts it into a modal for...
View ArticleHow to use alert(),confirm() and prompt() function using Blazor?
I'm learning the Blazor technology. I started a default increment project in VS 2019 and I have modified the code for Decrement with confirm() and alert but it does not work. @page...
View ArticleBlazoredModal not closing WebApp Net 8
I've been using https://blazored.github.io/Modal/usage/passing-data to try and get a modal to pop up acting like a dialog and for users to Confirm or Cancel the button press.I am using Blazor Web App...
View ArticleBlazor app not showing new information after update message via SignalR
I have a Blazor .net 8 Web App where I use Entity Framework Core with SQL Server. I have the following code for my view page:view.razor.cs:public partial class View : ComponentBase{ [Parameter] public...
View ArticleHow to change MudExpansionPanel's initial state to an expanded state using...
I have created a simple expansion panel using MudBlazor and included it below.<MudExpansionPanels><MudExpansionPanel><TitleContent><div class="d-flex"><MudText>Expansion...
View ArticleMy AuthorizeRouteView doesn't work when I use @attribute [Authorize] in...
In my code it is not loading the information when logged in. Only the navmenu worked.routerrouternavmenunavmenuprograprogram.cssystem loginsystem loginsytem doesn't worksytemI tried several things and...
View ArticleHow can I trigger/refresh my main .RAZOR page from all of its sub-components...
I am working on an app that lets users search our database. When a user enters search terms, the app hits an API endpoint, and returns the data. I then display the data.When the API returns the data, I...
View Article