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

Blazor InputText Field Bound to Model Always Null on Submit

I'm building a Blazor web application and having trouble binding form input fields to a model. When the user submits the form, the TrainingInfo.Course property is always null.Problem:When I enter text...

View Article


How do I make a Text Bold in the Mudblazor?

I am working with MudBlazor and I’ve noticed that it has many frontend classes, such as Typo and Align. I want to make text bold without using any external CSS or the <b> tag. For example, I have...

View Article


Struggling to understand how shared layouts and references are picked up and...

I have a blazor server project. I would like to knowA) how the shared layout folder worksB) now css files and js files are shared across pages.I can see in my project the shared layout but what I want...

View Article

Blazor: @onclick event handler not triggering SortData() for table column...

Question:I'm working on a Blazor application where I need to implement sorting functionality for a table of vehicle data. The table displays vehicle information (Make, Model, Color, Year), and each...

View Article

Image may be NSFW.
Clik here to view.

Azure AD B2C login redirect not working in Blazor WASM Standalone

I just started a new Blazor WASM Standalone project (targeting .NET 9) using the Blazor Bootstrap starter template here.I then went through the setup process to use Azure AD B2C following this document...

View Article


EditForm - How can I prevent submit on pressing enter key

I've found this article but I'm having a hard time to understand how can I prevent submit on "enter" key independently by any <input><EditForm Model="exampleModel"...

View Article

Mudblazor Select "broken" on Popover

I have a MudSelect on a MudPopover but I encounter a somewhat weird behavior when using the select. The select dropdown will not appear over everything else as it should, but instead, it will be...

View Article

How should I get an `IJSObjectReference` when invoking a js function which...

For example, I have a module in typescript like:export function getIndexedDb() : IDBFactory | null{ if (window.indexedDB) return window.indexedDB; else return null;}Now I want to get an...

View Article


Incorrect Code Formatting for Blazor/Razor Files in JetBrains Rider After...

I recently upgraded JetBrains Rider (from 2023.3.6 to 2024.3.5), and now my Blazor/Razor (.razor) files are incorrectly formatted when I use the built-in code formatter (Ctrl+Alt+L / ⌘+⌥+L on macOS)....

View Article


Use Blazor for generating static serverless website (without .NET server)

I want to create a website and I appreciate the framework Blazor. Usually Blazor is used in .NET with server-side .NET. I would like to build a website that I can host using Github Pages.Therefore I...

View Article

Infinite Scrolling in Blazor, load items dynamically

Im building a Website with Blazor (.Net 7.0).I would like to load items dynamically. For Example i load 15 items and when the user scrolls to the bottom of the page i would like to load new items.I...

View Article

Image may be NSFW.
Clik here to view.

Blazor - Change UI CultureInfo at runtime

I need to change cultures at runtime according to resource files for each culture.ExpectedUser clicks a button that switches from current language to the other language. The texts in the page are...

View Article

How can I overwrite a route in Blazor?

I use a second assembly in my Blazor project. Works fine. But both assemblies have a page which is responsible for "/" route. A common index page in the referenced common library and a customized index...

View Article


Visual Studio 2022 Blazor error/bug with Tuple syntax, when using it with a...

I have a simple Blazor component called TagComponent, that receives 4 parameters, my problem is with the OnTagSelected parameter, which receives a Callback to be called from the TagComponent.Code...

View Article

Looking for simple way to persist scoped service state from Prerender phase...

I am in the process of converting a .NET 6 Blazor Server app to a .NET 8 Blazor Web app.Our app relies heavily on a scoped service to make data, obtained from the HttpContext of the initial page...

View Article


MudBlazor: MudTable filtering not working

Project created through VS2022's "Blazor Web App" template and I've installed MudBlazor.I've copied this filterable Table example from the MudBlazor docs almost...

View Article

Image may be NSFW.
Clik here to view.

Integrity check fails on mobile platforms in Blazor Wasm App

I created a Blazor Wasm standalone app + an ASP.NET Core 8 Web API with Visual Studio 2022. Both are hosted on the same server.The app runs fine on a desktop or laptop.But when I try to open it on...

View Article


JavaScript event doesn't work when add @rendermode InteractiveServer

I'm starting with ASP.NET Core 8 and Blazor.I put my script in main layout or in app.razor.When I add components in my application and I put @rendermode InteractiveServer to call server functions, all...

View Article

Chrome 32 Bit: This browser/engine doesn't support WASM SIMD

I am getting the error:MONO_WASM: Assert failed: This browser/engine doesn't support WASM SIMD. Please use a modern version. See also https://aka.ms/dotnet-wasm-features Error: Assert failed: This...

View Article

How to customize Default Windows AutheticationStateProvider in Blazor server...

I have a Blazor Server app that uses Windows authentication to identify users.The app "detects" the user currently browsing the app and can display domain/username correctly.I wrote a class that checks...

View Article
Browsing all 4216 articles
Browse latest View live


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