When rendering output from a razor template it is important to remember the distinction between @{ ...} and @(...) Curly braces will cause the output to execute, whilst the regular parenthesis will cause the output to render. As an example that tripped me up during rendering of a ViewComponent in the CamperFinder demo, the following... Continue Reading →
Using media queries in razor page files
When hardcoding a media query into an ASP.NET Razor page file, you need to use @@ instead of @ to ensure the query is rendered correctly. Kudos: https://stackoverflow.com/a/6873785/75594
Azure DevOps – Move a Git repo between projects
There are many situations where you want to make a copy of a repository... You've been working on a personal repo and want to share it with workYou're contributing to an open source project and need to fork You've been working on a repo that you want to hand-over to a customer It's the last... Continue Reading →
Azure DevOps – Multiple repos in a single project
When you create a new DevOps project, you only get one Git repo. It is possible to create more repos within the project, but not immediately obvious how. There are a couple of options; Navigate to Repos, hit the drop down and select Manage repositories Or... Open the project and go to Project settings| Repositories |... Continue Reading →
Free website hosting #4 – AWS
This is the final part of a four part series looking at free hosting from modern cloud providers: Part 1 - GitHub PagesPart 2 - Azure Web AppPart 3 - Firebase In this article we look at the offering from Amazon web services, and the static hosting capabilities of the S3 storage bucket. If this... Continue Reading →
Free website hosting #3 – Firebase
This is part 3 of a series detailing the steps required to obtain free hosting on a modern cloud provider. Part 1 - GitHub pagesPart 2 - Azure web app In this part we take a look at Google Firebase. The documentation for this process is already really good, so this document will just be... Continue Reading →
Free website hosting #2 – Azure Web Apps
In the second part of this series we take a look at the first free web hosting option in Azure - Wep Apps. Part 1 - GitHub Pages Azure comes with a free hosting tier. This is limited to 1GB and on shared infrastructure, so won't suit a website needing high performance, however for free... Continue Reading →
Free website hosting #1 – GitHub Pages
There are a number of ways to get free website hosting in a no-nonsense, no adverts way. In this series of posts I'm going to take a look at a few. I'm only considering systems that can offer hosting for static websites. No server side programming languages (PHP, Python or ASP.NET), just HTML, CSS and... Continue Reading →
Be a specialist
In his Keynote address at //Build2018 Scott Guthrie said that the pace of change can make adoption of cloud technologies intimidating and difficult. Microsoft are going a long way to fix this by increasing the quality of the documentation, creating free training content on Pluralsight and publishing comprehensive training plans on the learning website. It... Continue Reading →
Adding typescript to ASP.NET 2 WebForms project
If you are burdened with the technical debt of an old ASP.NET 2 Webforms project, then the chances are that you might not have had the chance to stay up-to-date with JavaScript revolution. A lot has changed with JavaScript in the past few years, and keeping up is a significant effort. So what should you... Continue Reading →