Blazor WebPage published in IIS not working
I just created a WebPage in Blazor I used the template "Individual Account" in the beginning of the creation of this project the purpose to create this WebPage is just to Authenticate with Windows. The...
View ArticleHow to AutoFitColumns on TelerikGrid Initialization in Blazor?
I’m working with the TelerikGrid in Blazor and trying to apply AutoFitColumnsAsync directly when the grid initializes. My goal is to have the column widths automatically adjusted as soon as the grid is...
View ArticleBlazor rendering after computation or call
making my first steps in Blazor!I have my page Test.razor with a simple grid:<table class="table"><thead><tr>Message</tr></thead><tbody> @foreach (var exception in...
View ArticleBlazor JSInvokable without static function
I have my Blazor component with some JavaScript code. When there is a click detected by the JavaScript code, I want to call an JSInvokable function in my Blazor component to update the UI.So, I created...
View ArticleBlazor Server App $(document).ready() equivalent
I have a Blazor Server app, I need to run a js function when the document is loaded - when I use "Static" mode, jQuery $(document).ready() works fine but I need to use "ServerPrerendered" mode - when...
View ArticleGetting a warning in Blazor WASM since upgrading to NET 9
I do a call on app initialisation in a Blazor WASM app to read the contents of the _framework/blazor.boot.json file. This file is found successfully and I can read the json I need. I also have a...
View ArticleBlazor Web App doesnt seem to let JavaScript work in project, why?
i used to be able to do the followingstart a blazor web server projectAdd a JS Folder inside wwwroot and create my js fileLink the file using script src="JS/Mapbox_Menu.jsinject IJSRuntime into...
View ArticleBlazor App (Server) 9 not routing to Login
I am trying to implement JWT auth on a Blazor App 9 (using Server interactivity) but I can't seem to get app to route to the Login page when the user first starts the app. The Index has an [Authorize]...
View ArticleBlazor server override locales for dynamic languages
I created a Blazor server application using localization as described in the documentation. This works fine overall but unfortunately, I use fr-CH locales which uses controversial decimal and group...
View ArticleBlazor: external callback is logging a different user
I have a normal Blazor app, with the default boilerplate user/password authentication from MS. I have 2 users, root and test.I logged in with root and clicked remember me. Then I logout and log in...
View ArticleBlazor: Determine Layout based upon Route
Is it possible to do something like this:<Router AppAssembly="@typeof(Routes).Assembly"><Found Context="routeData"><RouteView RouteData="@routeData" Path="/admin/*"...
View ArticleRider + Blazor + Scss + hot reload
I have been using the node sass plugin and building my scss files during my dotnet build process, which works, but takes so much time whenever I make a change.I decided to switch to using prepros to...
View ArticleMicrosoft.AspNetCore.Components.NavigationException on Login Component
Simpaly created web app from Blazor Web App template and set authorizedview on home page to redirect to login. On login component replace original code with identity api endpoint public async Task...
View ArticleChange the string at the end of System.Drawing.Color. in Blazor [closed]
I want to change the color mentioned at the end of the color names. For example, if we have System.Drawing.Color.Red I want to pass a string variable to change the Red to say, Pink or Orange after a...
View ArticleBlazor WebAssembly Javascript isolation Error
I am using Blazor Webassembly project.Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced...
View ArticleAndroid Device Manager Pop's Up for few seconds while running new MAUI...
I am trying to run my first MAUI project but whenever I try to run this with android emulator Android Device Manager pop ups for 1-2 seconds and process stops. I am using .net 7.
View ArticleHow to make an handler for invalid forgery token?
is there a way to handle invalid forgery token error in Blazor WebApp .NET8 ?A valid antiforgery token was not provided with the request. Add an antiforgery token, or disable antiforgery validation for...
View ArticleScrollbar on my website although there are no elements
I have a chat application. I want to always scroll to the bottom of the page. When i go to a page where i can scroll down and later then go back to my chat, the scrollbar does not get updated at...
View ArticleUsing enter to navigate from one InputNumber to next one by tabindex in Blazor
I have an EditForm in Blazor Server with several InputNumber where each InputNumber is defined with a tabindex, id and @onkeydown event attached. What I'm trying to do is to be able to use enter...
View ArticleBlazor StateHasChanged Throwning Null Reference Exception on Simple Page
I am using Blazor with Radzen Components. I have a page setup with two tabs. The first tab lists items that can be edited. The second tab references a component used to edit the selected item.The code...
View Article