How can I scrape a blazor website with python
I've scraped quite a few websites and normally this hasn't been a big issue (those that use http requests with form data or json APIs). Now I stumbled upon one which has me absolutely stuck. After...
View ArticleWhy do I keep getting null data from service call
I have a service which calls controller, which has cacheservice to send response data as location list based on customerId. As shown in below code, I am using it for paging. But I get null value at...
View ArticleBlazor - Select all checkboxes with non-boolean @bind value
I am trying to generated a dynamic list of checkboxes that will be data bound to the Guid property from a Dictionary<Guid, string> variable. Then I have a separate "Select All" checkbox which...
View ArticleHow can i keep the authentication state when dealing with Microsoft Graph API...
my application use Microsoft Graph SDK (Microsoft.Graph) and Blazor on .net 9.The authentication is currently setup to use the Microsoft Authentication on the server side like...
View ArticleHow to add an environment indicator into a razor page?
I wish to add something to a razor page so that when I inspect the page code behind, I'm able to tell if it is in Production, Staging, or Development mode. In this case, I'm adding a hidden field to...
View ArticleBlazor AuthorizeView: How to use Custom Authorization Filter
I'm working with this code from the Blazor Boilerplate: (BlazorBoilerPlate GitHub)@using Microsoft.AspNetCore.Components@inject NavigationManager navigationManager@inject AuthenticationStateProvider...
View ArticleUnderstanding QuickGrid internals: "Defer hack"
I am studying the source code of the QuickGrid from Blazor (ASP.NET Core 8). The implementation leverages some internal knowledge on how Blazor handles the actual rendering in order to collect all...
View ArticleHow can I programmatically determine the Blazor render mode
How can I get the render mode Blazor is using for my component. There is this suggestion but that won't work for Auto as it could be either. I want to verify I've configured everything properly so my...
View ArticleWhy does Blazor Components not detect the code behind typed as a partial class?
𝖶𝗁𝗒, 𝗐𝗁𝖾𝗇𝖨𝖼𝗋𝖾𝖺𝗍𝖾𝖺𝗉𝖺𝗋𝗍𝗂𝖺𝗅𝖼𝗅𝖺𝗌𝗌𝗈𝖿𝗍𝗁𝖾𝖼𝗈𝗆𝗉𝗈𝗇𝖾𝗇𝗍, does the 𝖼𝗈𝗆𝗉𝗈𝗇𝖾𝗇𝗍𝗇𝗈𝗍𝖽𝖾𝗍𝖾𝖼𝗍𝗍𝗁𝖾𝖼𝗈𝖽𝖾𝖻𝖾𝗁𝗂𝗇𝖽?I𝗇𝗍𝗁𝖾𝖼𝗈𝗆𝗉𝗈𝗇𝖾𝗇𝗍, 𝗂𝗇𝗍𝗁𝖾𝗈𝗇𝖼𝗅𝗂𝖼𝗄()𝖾𝗏𝖾𝗇𝗍, 𝗂𝗍𝖽𝗈𝖾𝗌𝗇𝗈𝗍𝖽𝖾𝗍𝖾𝖼𝗍𝗍𝗁𝖾𝖲𝗁𝗈𝗐𝖬𝖾𝗌𝗌𝖺𝗀𝖾() 𝗏𝗈𝗂𝖽.𝖨𝗍𝗅𝗈𝗈𝗄𝗌𝗈𝗄ay,...
View ArticleBlazor App Missing wwwroot/scripts Folder After dotnet publish in GitHub Actions
I’m building a Blazor WebAssembly app and deploying it to Azure Static Web Apps using GitHub Actions. My app relies on JavaScript files generated from TypeScript with gulp task, which places them in...
View ArticleHow do I set focus to a text box in Blazor
How do I set focus to a textbox in Blazor? So far the only way we have found is with JavaScript.
View ArticleScoped service instances in Blazor
I am new to Blazor. I'm creating a simple object to get familiar with it. Using Entity Framework with SQL Server as back end.I created a customer class that has orders in it. Created a...
View ArticleRoute values are lost in the second pass of OnInitializedAsync() in Blazor...
Problem:In Blazor Server with render mode 'ServerPrerendered', I am observing that the route values are present in the fist call of OnInitializedAsync().However, the route values become empty after the...
View ArticleSession management tied to an user
In the app, I have a requirement to display School dropdown in every page of Blazor app and School should be selected to the School assigned to the logged in user. Admins can view all the schools in...
View ArticleAsp.Net Core / Blazor: How to implement Permissions based (non-Policy)...
Using Blazor WASM, I want to implement a dynamic Permissions based authorization system that isn't definable at build time. The current "Policy based" authorization built-in system requires that...
View ArticleTrying to bind value and display, not working
Ok, so I am VERY NEW at Blazor (coming from old school Webforms), and have a simple Web App (InteractiveAuto) where I am testing simply binding values to a class. It's not working, when I tab out of...
View ArticleHow to disable Blazor server side pre-render?
To disable server side pre-render on asp.net core preview 3, you just needed to comment @(await Html.RenderComponentAsync<MyApp>()).Since asp.net core preview 4, when you comment this line, the...
View Articlewwwroot folder is not being recieved in the browser and localhost:{port} is a...
I am working on a blazer server web app. I created a new page and changed its route to @page "/" and changed the old / page to a new route. When I load launch the program the default / route gets...
View ArticleUnable to create a 'DbContext' in MySql - Blazor .NET 9
I'm trying to connect Blazor (.NET 9) to a MySql database (8.4.3). I've read a lot of posts and tried different packages without success.Here are the packages I've...
View ArticleHow to hide the filter drop down option menu in DataGrid in Blazor? [closed]
I need to hide the drop-down menu for filtering the data in a DataGrid such that I can save some space for FilterText. How can I do that?I'm using BlazorBootstrap's Data Grid link. I need to find out...
View Article