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

Static files and Blazor files download in start script section with CDN Url...

in a WebApp project, I need the static files in App.razor, including the Blazor startup section:<link href="https://EP-custom-cdn.azurefd.net/main.css" rel="stylesheet" /><script...

View Article


Blazor Pages displaying incorrectly in production mode

I have a Blazor .net 7 webpage project tin visual studio 2022. When running the executable from the Visual studio environment in a Development profile (in launchsettings.json) everything works as...

View Article


.NET MAUI Capture photo and capture video in the same view

I want the device camera to open and the user being able to capture a photo or video.I tried using MediaPicker, but unfortunately it does have only 4 methods, only two of which allow us to do something...

View Article

How to send data from one Blazor component to another

I have a very basic component that fetches students lists and displays them, as you can see below:@if(result == null) {<p> No students found </p>}else{ @foreach (var person in...

View Article

Fluent Validation - Multiple messages for one rule

Is there a way to return multiple messages on one rule?public class EmployeeValidator : AbstractValidator<Employee>{ public EmployeeValidator () { RuleFor(p =>...

View Article


InvalidOperationException: There is already a subscriber to the content with...

I have a blazor app.In my wwwroot folder I created a folder called JS and created a javascript file called Paginate.js and wrote 2 functions.In my app.razor I referenced thre js file and the page on my...

View Article

MudDataGrid - Track changes in hierarchy / remeber childrow-visibility

I am using a MudDataGrid with HierarchyColumn to selectively display the ChildRowContent on any row of my data grid. So far, everything works great. Initially, all rows are collapsed.When some of the...

View Article

Create an InputSelect component that accepts lists with Blazor

With Blazor InputSelect you have iterate over list items in the component ChildContent butI want to create a custom Blazor (WebAssembly version 5) InputSelect that could accept a list of any object to...

View Article


MudDataGrid - Track changes in hierarchy / remember child row visibility

I am using a MudDataGrid with a HierarchyColumn to selectively display the ChildRowContent on any row of my data grid. So far, everything works great. Initially, all rows are collapsed.When some of the...

View Article


How to produce Antiforgery Token in blazor Server and blazor WebAssembly in...

A Coverity scan on our application reported a potential risk from CSRF attacks. In order to prevent this, I tired to implement the Antiforgery token concept in our Blazor webassembly and Blazor server...

View Article

Release a C#-BlazorWebApp Solution with multiple projects into Azure via...

as you can see in the title I have a C# BlazorWebApp with multiple projects and I want to release this solution to Azure via Github actions but it doesn't work.To keep it small, I created a...

View Article

Blazor/Razor page @bind-Value does not bind

[Edit] Solution thanks to @GH DevOpsMake sure you are using rendermode InteractiveServer and use standard HTML tag for instead of So I'm trying to bind a text input to a model generated by EF using...

View Article

Blazor navlink route not found from home component

I'm new to blazor and I'm struggling to get a simple navlink to a new page to work.I'm using the basic webassembly template in visual studio that has the home page along with mainlayout etc..I've...

View Article


Blazor 8: Supporting Windows Authentication for a Single Page/Component While...

I have a single component in a Blazor 8 project that needs to be accessible by only specific domain users. Prior to NET Core, when an application was published to IIS, you could do this by using the...

View Article

Where does the CascadingParameter HttpContext come from in a Blazor server...

Im currently learning blazor identity and am analyzing the built in identity files. Im not one to just use something without knowing more about what its doing so i was just curious if anyone could...

View Article


Blazor: Failed to load resource: the server responded with a status of 404 ()

I'm having a very difficult time trying to understand what the issue is with my blazor application. I have a client blazor which I'm updating from .net 3.1 to .net 6. I've read the instructions...

View Article

Blazor - WASM : Failed to load resource: the server responded with a status...

I am getting below error, code is not able to find Controller and its methods. I am trying to add user to database from create user component.Failed to load resource: the server responded with a status...

View Article


_framework/blazor.web.js fails to load with 404 when changing the base URL of...

I have .NET 8 Blazor Web App that I've created from the Visual Studio template. It has server and client projects.I need to change the base URL of the application to be /portals/sales. Here are the...

View Article

Blazor on .NET 8: supporting Windows authentication for a single...

I have a single component in a Blazor / .NET 8 project that needs to be accessible by only specific domain users. Prior to .NET Core, when an application was published to IIS, you could do this by...

View Article

Blazor .NET 9 grab rendered HTML to save to file

In Blazor .NET 9 after the OnInitializedAsync has finished running, is there a way to grab the generated/rendered HTML that is sent to the client and save to a string?RegardsJamesThe OnInitializedAsync...

View Article
Browsing all 4217 articles
Browse latest View live


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