blazor Questions

4

I have the following dropdown menu: public class object { public other_object apple {get; set;} ... public string stuff {get; set;} ... } public class other_object { public string id {get; s...
Rutilant asked 4/12, 2019 at 13:0

3

Solved

MudTable component really great, look very nice. But I want configure column width. Is possible? <MudTable Items="@my_users"> <HeaderContent> <MudTh>Nr</MudTh> ...
Kean asked 28/10, 2020 at 13:41

3

Solved

I am running currently a webserver with ASP.NET Core 3.1 and a Blazor project. Recently when upgrading to .NET 6.0 I encountered (even with a blank Blazor project) some problems with a websocket er...
Ambit asked 1/2, 2022 at 8:50

7

Solved

In Blazor WASM standalone app it is easy, because there is dedicated element for that: <div id="app">Loading...</div> And it gets replaced once the the app is loaded. In Blaz...
Hyacinthia asked 14/12, 2023 at 14:3

2

@page "/fileup" <h3>FileUp</h3> <InputFile OnChange="@UploadedExcel" accept=".xlsx" /> @code { public async Task UploadedExcel(InputFileChangeEventA...
Graniteware asked 28/1 at 13:1

4

Solved

I am trying to send an HTTP request from my Blazor app to my ASP.NET Core API. I have breakpoints everywhere. The application gives an exception right after the action method on the API controller ...
Evidential asked 1/12, 2020 at 4:41

5

Solved

I have a project based on the Blazor sample with a .Client, .Server and .Shared projects. I have a textfile data.txt on the server that I want to be able to read/write using standard StreamReader /...
Pop asked 28/3, 2019 at 22:38

3

Solved

I have a server-side blazor app and I need to know it's base url (e.g. https://localhost:1234 or https://my-host.com/appname). In a traditional ASP.NET web application, I could inspect the Request...
Midwest asked 16/8, 2019 at 7:54

3

Solved

How does one resolve this Blazor error? EditForm requires either a Model parameter, or an EditContext parameter I have created a minimally reproducible example below. The issue seems to be becaus...
Spaceband asked 21/5, 2021 at 17:49

2

Solved

I'm using MudBlazor and implemented a MudSelect component following the documentation. However, I'm trying to get the selected value from the MudSelect when a selection has been made but unsure whi...
Outing asked 19/10, 2022 at 22:52

11

Solved

I am getting this error on my App.razor: Found markup element with unexpected name 'CascadingAuthenticationState'. If this is intended to be a component, add a @using directive for it namespace T...
Lardner asked 11/10, 2019 at 8:6

2

Solved

I ran into some strange behaviour with the authorization in Blazor with .NET 8. The sample is a slightly modified version of the Blazor Web App template with its default settings (no authorization)...
Myrna asked 20/12, 2023 at 17:58

5

Solved

I have a file drop zone implemented in one of the pages of my blazor application, which is handled using the javascript runtime interface. In order to avoid memory leaks, I have a javascript method...
Diatonic asked 3/6, 2022 at 10:54

4

Solved

I access the HttpContext in a Blazor server-side view to manually log out. I added this line to Startup.cs: services.AddHttpContextAccessor(); and inject it in the view with @inject IHttpContextAcc...
Homeward asked 29/7, 2019 at 8:22

6

Solved

Let's say most of my components have a header. I want to create a base component that has the header variable and make all the other components inherit from that component and set the header. So I ...
Sequela asked 30/1, 2020 at 16:54

8

Solved

I have installed mudblazor through NuGet and followed the "tutorial" on how to set up mudblazor, I did everything step by step but for some reason the component appears without any css or...
Stearne asked 6/12, 2020 at 16:7

4

Solved

I have a Blazor Server application and need to get the current user ID. Its easy to get the email and the user name, but not the ID. It was so easy in .net core 2.2. Why they did not expose the ID ...
Multidisciplinary asked 10/5, 2021 at 7:5

3

I have two sibling spans in my DIV. I am doing E2E testing in Blazor and I want to access the second Span content (@Status). <div> <span> Status:</span> <span> @Status<...
Seif asked 4/8, 2022 at 18:9

6

i have tied so many ways for switching Between Dark and Light Mode in Blazor.with different packages and Even Manually with css. but they never workedout For Me.can someone Give me complete guid on...
Sidell asked 2/2, 2022 at 6:4

2

I have a Blazor WASM application that I publish to a server where it's run as an IIS site. I've just converted it to .NET 8 and in DEBUG and RELEASE modes it executes just fine on my machine in Vis...
Frederigo asked 24/11, 2023 at 18:10

3

Solved

Before .NET 8, hosting server side controllers with a Blazor WebAssembly app was easy. You just clicked the "ASP.NET Core Hosted" checkbox in the project template, and an ASP.NET Core pro...
Roa asked 15/11, 2023 at 9:26

6

Solved

I want to support JWTs, so I need to keep the token around; is there some facility to access this? Or should we just be registering our own javascript function to access this functionality for now?...
Victualler asked 7/4, 2018 at 7:8

1

Solved

I have a Blazor Hosted WebAssembly application under .NET8. That means I have a Client, a Server and a Shared projects. Into Server, I have the following controller, which has a loop which triggers...

4

I'm trying gu get the window width for responsive stuff. Thanks! I have tryied @code{ public WindowState State { get; set; } = WindowState.Default;} `@code{private Window myWindow = ?}`
Spirograph asked 31/10, 2019 at 15:23

14

Solved

I have a Blazor client/server app that I have been working on for a period and it has been working fine up to now. I suddenly started getting this error Failed to find a valid digest in the 'integ...
Jailer asked 11/11, 2021 at 10:39

© 2022 - 2024 — McMap. All rights reserved.