Build better web applications, one feature at a time...


Every ASP.NET Article First

Get practical advice, delivered straight to your inbox.

I respect your email privacy. Unsubscribe with one click.

 

Interactive components with Blazor Server or Blazor WASM (whichever loads fastest)

Sooner or later you're going to need to capture user input in your Server Side Rendered .NET 8 Blazor components

Blazor without Web Assembly or Socket Connections...

Components, done "right" carry tremendous potential to speed up your web development, but get it wrong and you'll miss out on all the potential benefits

When you navigate to the same component in Blazor it will bypass some of the component lifecycle events

How to handle Component A needs to talk to Component B challenges in Blazor

Sure you could just keep throwing StateHasChanged calls at your component until it finally re-renders, but what's really going on behind the scenes?

Data coming from another service/API needs to be mapped into a different type for your Blazor component, so where should you perform the mapping?

Blazor's component model can make you a lot more productive, if you let it…

Blazor Server and WASM both have trade-offs, Blazor United looks set to tackle those and make Blazor a viable framework for all your web development needs.

How to render nested "nodes" in a TreeView

Maintain clear separation between your components and "inject" the markup you need

Render Blazor components from dynamic content, at runtime?

Prioritise the ability to iterate and evolve your UI

Build the skeleton and fill in the details from there

Make your Blazor app support deep linking by passing state in the Query String

Sometimes you'll want your Blazor UI to change according to the data you're using to populate it

Big feels overwhelming so start small and go from there.


By Jon Hilton

Here to help you level up your development skills and find your way in the (often confusing) world of Microsoft software development.