Relative Content

Tag Archive for blazor

EditContext not cascaded into custom input derived from InputBase

I have implemented my custom TextInput input component by deriving from InputBase<string?> class. After investigations, found out that the EditContext property of my component is not initialized though I’ve used my component within an EditForm. If I add the official InputText component which is developed by Microsoft, the problem is solved and the official component’s EditContext property is initialized.
I compared my own implementation with the one from Microsoft and they are almost the same but in that mine has a .razor part.
Here is the implementation from Microsoft. This is my custom implementation:

InvokeAsync(StateHasChanged) not working on Blazor App

🙂
I am simply tring to build a web page that displays a few values. Currently they are being sent to an Api but I modified the original application so they are sent to a localhost route. I simply want to display them in a web page so another screen capture program can read them. It’s for a golf simulator, don’t ask… 😀 So the values will be updated every 30 seconds maybe and I simply want the new values to appear on the page. Nothing fancy, just numbers and their titles.
However, I’m just a materials scientiest turned data engineer so my dev process has mostly been an intense dialogue with ChatGPT as I have simply very little clue about C#, blazor and all the other stuff. I am also not interested in taking 5 days of learning all the details of the framework, I just want a few numbers to be displayed :'( I guess it’s a pretty “simple” mistake but I just don’t know the issue behind it.

InvokeAsync(StateHasChanged) not working on Blazor App

🙂
I am simply tring to build a web page that displays a few values. Currently they are being sent to an Api but I modified the original application so they are sent to a localhost route. I simply want to display them in a web page so another screen capture program can read them. It’s for a golf simulator, don’t ask… 😀 So the values will be updated every 30 seconds maybe and I simply want the new values to appear on the page. Nothing fancy, just numbers and their titles.
However, I’m just a materials scientiest turned data engineer so my dev process has mostly been an intense dialogue with ChatGPT as I have simply very little clue about C#, blazor and all the other stuff. I am also not interested in taking 5 days of learning all the details of the framework, I just want a few numbers to be displayed :'( I guess it’s a pretty “simple” mistake but I just don’t know the issue behind it.

How can I set layout to null in .net blazor?

I’m working on a Dashboard application using .NET Blazor WASM, where, except for the login page, all pages can share a same layout. So how can I specify for the login page that it doesn’t need to inherit any layout?

Working on a Blazor app, my buttons aren’t calling my methods

I’m working on a Blazor project for some personal learning, and I’ve hit an issue that I can’t seem to figure out the solution to. That being most of my browser-side buttons don’t seem to do anything, likely because they aren’t calling my methods. I’ve checked my syntax, debugged my code, and checked for errors on browser side and I can’t see anything that should be wrong. Everything I can find elsewhere says there shouldn’t be a problem with my code, so I’m here to ask for help. Below is the razor page, ’cause I can’t imagine that the problem is with my CS partial page.

Working on a Blazor app, my buttons aren’t calling my methods

I’m working on a Blazor project for some personal learning, and I’ve hit an issue that I can’t seem to figure out the solution to. That being most of my browser-side buttons don’t seem to do anything, likely because they aren’t calling my methods. I’ve checked my syntax, debugged my code, and checked for errors on browser side and I can’t see anything that should be wrong. Everything I can find elsewhere says there shouldn’t be a problem with my code, so I’m here to ask for help. Below is the razor page, ’cause I can’t imagine that the problem is with my CS partial page.

Working on a Blazor app, my buttons aren’t calling my methods

I’m working on a Blazor project for some personal learning, and I’ve hit an issue that I can’t seem to figure out the solution to. That being most of my browser-side buttons don’t seem to do anything, likely because they aren’t calling my methods. I’ve checked my syntax, debugged my code, and checked for errors on browser side and I can’t see anything that should be wrong. Everything I can find elsewhere says there shouldn’t be a problem with my code, so I’m here to ask for help. Below is the razor page, ’cause I can’t imagine that the problem is with my CS partial page.

Working on a Blazor app, my buttons aren’t calling my methods

I’m working on a Blazor project for some personal learning, and I’ve hit an issue that I can’t seem to figure out the solution to. That being most of my browser-side buttons don’t seem to do anything, likely because they aren’t calling my methods. I’ve checked my syntax, debugged my code, and checked for errors on browser side and I can’t see anything that should be wrong. Everything I can find elsewhere says there shouldn’t be a problem with my code, so I’m here to ask for help. Below is the razor page, ’cause I can’t imagine that the problem is with my CS partial page.