Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Browsing all 4839 articles
Browse latest View live

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 Article


Why 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 Article


Blazor - 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 Article

How 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article


Blazor 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 Article

Understanding 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 Article

How 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 Article


Image may be NSFW.
Clik here to view.

Why does Blazor Components not detect the code behind typed as a partial class?

𝖶𝗁𝗒, 𝗐𝗁𝖾𝗇𝖨𝖼𝗋𝖾𝖺𝗍𝖾𝖺𝗉𝖺𝗋𝗍𝗂𝖺𝗅𝖼𝗅𝖺𝗌𝗌𝗈𝖿𝗍𝗁𝖾𝖼𝗈𝗆𝗉𝗈𝗇𝖾𝗇𝗍, does the 𝖼𝗈𝗆𝗉𝗈𝗇𝖾𝗇𝗍𝗇𝗈𝗍𝖽𝖾𝗍𝖾𝖼𝗍𝗍𝗁𝖾𝖼𝗈𝖽𝖾𝖻𝖾𝗁𝗂𝗇𝖽?I𝗇𝗍𝗁𝖾𝖼𝗈𝗆𝗉𝗈𝗇𝖾𝗇𝗍, 𝗂𝗇𝗍𝗁𝖾𝗈𝗇𝖼𝗅𝗂𝖼𝗄()𝖾𝗏𝖾𝗇𝗍, 𝗂𝗍𝖽𝗈𝖾𝗌𝗇𝗈𝗍𝖽𝖾𝗍𝖾𝖼𝗍𝗍𝗁𝖾𝖲𝗁𝗈𝗐𝖬𝖾𝗌𝗌𝖺𝗀𝖾() 𝗏𝗈𝗂𝖽.𝖨𝗍𝗅𝗈𝗈𝗄𝗌𝗈𝗄ay,...

View Article


Image may be NSFW.
Clik here to view.

Blazor 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 Article

How 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 Article

Scoped 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 Article

Image may be NSFW.
Clik here to view.

Route 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 Article


Session 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 Article

Asp.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 Article


Trying 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 Article

How 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 Article


Image may be NSFW.
Clik here to view.

wwwroot 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 Article

Unable 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 Article

How 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
Browsing all 4839 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>