Blazor Questions
Ad
Port React app to Blazor app with JavaScript library imported using JavaScript interop
I currently have a react app that i'm trying to convert to a blazor webassembly app. the react app has a component that imports a javascript
Blazor Cannot provide a value for property 'ScopeFactory' on type 'MyComponent' because the property has no setter
I'm writing blazor wasm app in .net 6. the app works as it should in debug when running from visual studio 2022, but when i
CORS: Response to preflight request doesn't pass access control check: It does not have HTTP ok status
What i am trying to do used to work just fine before, i don't know what has happened, maybe they updated cors policy in the browser
How to escape the "at" (@) symbol when setting a property to a constant string?
Look at this code: <mycomponent param1="@somevalue" /> in mycomponent, param1 will be set to the
Blazor set background color with parameter
I have a card blazor component with css styling, i've tried to pass background color as a parameter to the styling in the following way:
Having trouble getting Blazor to rerender component on change in state shared between components
context i'm following a pattern that's something like
What is a BLAT file (.blat extension)?
I am building a blazor wasm application and noticed a file with a ".blat" extension (dotnet.timezones.blat). the file is readable in a
Positioning of bootstrap modal in blazor page
I am fairly new in web coding word so i ask sorry if there are some obvious error i am unaware of. i was challenging myself on using a modal
Blazor: Google Maps JS API
Morning, so currently in my project i am using an embeded google maps api with js in my blazor project. the map is on the page and
Database calls in Custom Authorization Handler returning a NullReference Error in Blazor Server
I'm currently creating a blazor server application that uses azure ad for authentication. the authentication works perfectly but i want to set up
Ad
Show/Hide HTML Elements from a Input Select option in Blazor Server app
I am using the following javascript function to show elements when a button is triggered. function showdiv() {
In Blazor handle Blazor component InputNumber property readonly via code
<inputnumber readonly id="productshares" class="form-control"
Is it expected that a custom component derived from InputNumber<T> only binds one-way?
I created a simple custom blazor component inheriting from inputnumber<t> to contain an input element and some other conveniences (i
Blazor: how can I restrict access to a property in a razor file (razor component)?
I have a razor file: <div>@getemail()</div> and a code behind file: public partial
error CS1503 cannot convert from 'method group' to 'EventCallback' in blazor
<div> <inputefile class="form-control" @onchange="selectbanner"></inputfile> </div>
Using the equivalent Javascript SetTimeOut() function to do animations on Blazor .net
Question: in the past i have been able to animate using setimeout function in javascript. here is a code of a ball falling:
Using jQuery DataTable in Blazor WASM
I want to integrate jquery datatable with my blazor wasm project. so i add
Blazor - Function call is trying to be a callback
I'm currently in the process of learning blazor server, and i'm not sure why i'm getting the error i'm getting. i'm getting cs1503
Services does not contain a definition for AddCors for solve Cross site origin problem in WASM
I want to get some data from a web api, and i write this code: var response = await
how to reference element by id within blazor component
I am making my own shared component. i want to have an input field and a label. taking the mdn example <div
Infinite await using UserManager with blazor server app
I am actually developping a blazor server project using ef core 6 and i'm facing a problem. actually, i would like to use a custom service class
Ad
Registering service in Blazor Server application
I have following project structure: project.server project.client project.application porject.shared
Blazor server StateHasChanged() does not refresh data
I am struggling to get my blazor components to rerender after updating some data. in my component i have a list of teams and each team has a list
Blazor page, @inject directive as public to implement an interface
I have several pages with same "logic". to avoid repeat code, i hardcored that logic into and interface with implementations. but this
How to debug image not found error in a blazor project?
In my small blazor project i want to display an image in a view as follows: <img scr="img/background.jpg"
Combining multiple Expression to use them in linq where clause
I'm struggling trying to combine many expressions into one to pass it to my service who whill use it to request the database. here is my
Blazor problem connecting the UI with the code
I'm using blazor server application in visual studio 2019. in the .razor page i have: <div class="container">
Is there a way for Blazor to stop auto closing html tags?
I'm trying to create some dynamic html with blazor. essentially i want a bootstrap(5.1) nav tab with a number of generated nav tabs created via a
Blazor: Object Cycle detected when trying to save an item
I am receiving the following error when trying to create a new ticket item with an assigned user. i am not sure how i should go about fixing such
Blazor (Asp Net) initialization and basic questions
I was basically playing with wpf before and just started with blazor. can somebody help me to clear some basic "clean code" topics to
How do I get the value of a setting in appsettings.json from configuration in programs.cs Blazor app
Can anyone tell me how to get the value from an appsettings.json file in my program.cs file in a blazor (core 5) app. basically just need to write
How to load a local Test.html file inside a iframe in the Blazor server template
I cant figure out how to load a local file into my blazor server template. i want to load the test.html file inside a iframe on the index.razor
Ad
Host web api in blazor server application
I have added a webapi project to my solution with a controller to do an httpget. the blazor server project can access it fine locally and
How Do I Fix Visual Studio 2022 Out of Memory Issue?
I went through every possible configuration option i could find both on stack and in docs to disable anything remotely extraneous in visual studio
Vue and Blazor for frontend
We have a project that we need to create a website for the university. the whole desin and vue part is done. but there was a misunderstanding and
Invalid or unexpected token in JQuery with Blazor and ASP.NET Core
I have a problem with jquery, i want to pass two parameters in different functions but i don't succeed and get an error on the console:
How to add server and shared project to Blazor Web Assembly app?
When creating a new blazor web assembly app, i had selected core hosted so i got the server and shared projects added. but then someone
MissingMethodException: No parameterless constructor defined for type
I have a blazor app using .net core 5. i am trying to run a page to trigger an email send (emailsample) which works fine until i try to add a
Blazor Server Dotnet6 EditForm CSS Issues
I have a blazor server dotnet 5 app that needs upgrading to dotnet 6. it's a small app, so rather than convert, i've created a new app from
Update List<model> items if there are any changes in UI
This is a bit hard to explain without showing the full concept, but i will try. i have table of employees in record.razor.cs -
Why is my Blazor Server App waiting to render until data has been retrieved, even when using async?
I'm building a blazor server app using .net 6. as an example i have a list of customers that i retrieve from a sqlite db using entityframework
Ad
Blog Categories
Ad