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

MAUI Blazor - .mjs files in disclassified as `application/octet-stream`

I'm trying to include the Prebuilt PDFjs files into our project.I am including them via script tag as recommended by the library like so:<script src="pdfjs/build/pdf.mjs"...

View Article


Application Insights JS Client-Side: Change Sample Rate for certain events

I'm developing a Blazor WebAssembly app and I would like to see logs in Application Insights instance from it. To avoid unecessary amount of events, I have set Data Sampling to 50% on the AI...

View Article


Extract block to code behind is no longer available in .NET 8 and Visual...

I'm using .NET 8 and Blazor in Visual Studio 2022 and I want to move my C# code to a code behind file. There is supposed to be an option called "Extract block to code behind" if you highlight the code...

View Article

Trying to get SelectList working in BlazorApp form that worked perfectly in...

I have a Register form that I had working perfectly in a RazorPages App that I am unable to get working in a similar form in a Blazor Application. In both applications, I took the basic User...

View Article

How to make a dropdown menu in Blazor

I am trying to make a simple dropdown menu in my Blazor app. It is declared in my Header.razor as shown below:<div class="header-sign"><div class="dropdown" id="toggleDropdown"><button...

View Article


Image may be NSFW.
Clik here to view.

Configure .Net 8 Blazor SSR (Static) app to work with Entra Id (Azure AD B2C)

I am having trouble configuring a .Net 8 Blazor SSR Static application to work with Entra Id (AD B2C).In Program.cs I have...

View Article

How can I use additional icons in NavMenu in Blazor 8?

I want to use additional icons in the NavMenu.razor in my Blazor 8 application. In Blazor 7 there was a iconset configured in wwwroot/css/, and so I was able to use additional icons only with naming it...

View Article

.Net MAUI hybrid

Browse folder dialog in maui blazor appHow to achieve browse folder dialog in maui hybrid dialogI used winform but not Android application runBrowse folder dialog in maui blazor appHow to achieve...

View Article


How to use bind-value and bind-value:event on a custom component Blazor

In Blazor, while using inputs,<input bind-value="@InputValue" bind-value:event="oninput"/>This creates a 2 way binding that updates with the oninput event.I would like to recreate this on a...

View Article


How do I run JavaScript in .NET 8 Blazor Web App?

My code was a bit more complex but I cut it down to the most simple use case to simplify the problem: "Show an alert box with a message"I can make it work in .NET 7 Blazor Server but the exact same...

View Article

Drop Down On Image Click In MudBlazor

I am creating a user login page after success login the user image is displaying in the appbar.I want to implement functionality in such a way that when i click on image logout option should appear in...

View Article

BlazorWebView without index.html (.net 8)

I have a Blazor project on .NET 8 that I want to use in a Maui app.I added a Maui app to my solution and added a reference to the Blazor project. However, I'm not sure how to set the HostPage property...

View Article

SignalR hubConnectionBuilder issue

I'm new to Signalr. I am in my blazor client project and have made a package reference to:Microsoft.AspNetCore.SignalR.Client.Core(8.0.4)in my code behind file I have declared:private HubConnection?...

View Article


Server Side Blazor Component in .net 8, @onclick event not firing

In Blazor Server in .net 7 I can do this in a Page.blazor:@message<button class="btn btn-primary mt-2 btn-block" @onclick="SendMessage">Send Message</button>@code { public string message {...

View Article

.Net Core Blazor How to pass multiple parameters?

Click the a TAB to pass multiple parameters. How to receive<a href="../navigatetopage?id="1"&key="img"></a>In the page you want to navigate to, add the parameter to your route:@page...

View Article


Image may be NSFW.
Clik here to view.

What is the difference between Blazor web app(New in .Net 8) and Blazor...

I do not understand the difference between Blazor Web App(new template in .net 8) and Blazor Server App. Even the description provided in Visual Studio, for example, just sounds like different ways of...

View Article

Blazor WebApp project

When i create a new Blazor web app project, it asks me to select interactive render mode, if i select Auto(Server and WebAssembly), it creates 2 projects, 1 for server, 1 for client.It seems server...

View Article


AuthorizeView doesn't work in Blazor WASM

I'm building a .NET 6 Blazor WASM (Hosted) app and I encountered an issue on Authorization.When I get a Not-Authorized message, I don't want the navbar to be shown. So, I'm trying to use a different...

View Article

Image may be NSFW.
Clik here to view.

Table with a 1 pixel height row in Blazor

I am not really a front-end designer, but had some code that is working on an small website.When I am trying to use the same code/styling in Blazor, it does not really work.My goal is that I have a...

View Article

Image may be NSFW.
Clik here to view.

Error CS1660 Cannot convert anonymous method block to type 'type' because it...

In my Blazor .NET 8.0 application I have a list of items in a FluentDataGrid. One of the columns is a template column which contains a FluentAnchor. For the Href attribute there is a hard coded link to...

View Article
Browsing all 4839 articles
Browse latest View live


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