Blog

Using Razor Components in an ASP.NET Core MVC Application

Author Lee Timmins Date 2nd Oct 2025 Comments Comments

In an ASP.NET Core MVC application, you can not only render Razor components within views using the component tag helper, but also return Razor components directly from MVC actions.

In this post, we’ll walk through an example of returning a Razor component from an MVC action and address the issues that come up along the way.

Read More...


Automatically Re-Executing Scripts in ASP.NET Core MVC with Blazor Enhanced Navigation

Author Lee Timmins Date 1st Oct 2025 Comments Comments

In my previous post on executing scripts in an ASP.NET Core MVC app with Blazor enhanced navigation, you had to use a <page-script> tag to define your custom scripts. But what if you don’t want to manually convert every script on your site?

Here’s a way to automatically handle this by using a MutationObserver and reloading <script> tags whenever they appear in the DOM.

Read More...


Executing Scripts in ASP.NET Core MVC with Blazor Enhanced Navigation

Author Lee Timmins Date 30th Sep 2025 Comments Comments

In my previous post, we looked at enabling Blazor-enhanced navigation in an ASP.NET Core MVC app. One challenge you’ll quickly run into is executing page-specific scripts after navigation updates.

One solution is to use a custom web component to manage script lifecycle events. This approach is explained in the official docs, but here I’ll walk you through how to apply it in an MVC project.

Read More...



Debugging IIS Express Sites on Mobile Devices with Visual Studio

Author Lee Timmins Date 11th Sep 2025 Comments Comments

By default, IIS Express only works on localhost. To allow access from other devices on your LAN: open the applicationhost.config file in .vs\config\, find your site’s section, and add bindings using your computer’s LAN IP (from ipconfig). This makes IIS Express listen on both localhost and your LAN IP so the site can be reached across your network.

Read More...


Installing Magento on Windows with Docker

Author Lee Timmins Date 27th Jul 2022 Comments Comments

The following article explains two approaches to installing Magento on Windows with Docker. The first method is simpler to understand but runs extremely slowly, therefore it is recommended to use method 2.

For both methods you should first make sure you have Docker Desktop (with WSL 2) installed. Also you should setup your local domain by adding "127.0.0.1 magento.test" to your hosts file.

Read More...