Relative Content

Tag Archive for blazor

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.

Bootstrap theme breaking on page navigation or hot reload

I implemented a Bootstrap theme using Blazor. Everything seems to work properly, except when I navigate to a new page or use hot reload in Visual Studio. In those cases the css seems to break a bit (but not massively). A reload fixes it. Does anybody have any idea how I can fix this or figure out what’s going on?

Bootstrap theme breaking on page navigation or hot reload

I implemented a Bootstrap theme using Blazor. Everything seems to work properly, except when I navigate to a new page or use hot reload in Visual Studio. In those cases the css seems to break a bit (but not massively). A reload fixes it. Does anybody have any idea how I can fix this or figure out what’s going on?

Bootstrap theme breaking on page navigation or hot reload

I implemented a Bootstrap theme using Blazor. Everything seems to work properly, except when I navigate to a new page or use hot reload in Visual Studio. In those cases the css seems to break a bit (but not massively). A reload fixes it. Does anybody have any idea how I can fix this or figure out what’s going on?

Bootstrap theme breaking on page navigation or hot reload

I implemented a Bootstrap theme using Blazor. Everything seems to work properly, except when I navigate to a new page or use hot reload in Visual Studio. In those cases the css seems to break a bit (but not massively). A reload fixes it. Does anybody have any idea how I can fix this or figure out what’s going on?

Blazor 8 sample: multiple DB reloads

I’m using the MS sample (https://github.com/dotnet/blazor-samples) as it’s about all I need to re-write reports for a legacy DB. I notice it seems to reload from the DB without interaction from me i.e. just opening the home page. It seems like it’s going into home.razor a number of times (e.g. it hits my breakpoint on _lastPage initialization) causing it to query the DB each time. With the simple/local DB they use that’s not much of a performance issue but with a real/remote DB it adds a lot of time.
So what’s triggering the ‘refresh’ and can/should I avoid it?