Blog posts

178 results found

178 results in .NET, Umbraco

umbraco How to create a Contact Form in Umbraco using MVC and C#

This post is to accompany the YouTube video tutorial I created. I will share the code I wrote for each section in the video.

dotnet How to create and use custom configuration sections in ASP.NET

This post will show you how to create a custom config section in your .NET application and use it in your code.

dotnet How to scrape meta data from a url using HtmlAgilityPack in C#

This post gives you the code create a meta data scraper so you can get information from a url, using HtmlAgilityPack in C#.

umbraco How to format the pre html tag in Umbraco for code blocks

A simple approach to formatting your pre tags

umbraco Automatically resize your media images in Umbraco

This post shows you how you can add a class to your umbraco project which automatically resizes any new images in Umbraco.

dotnet Simple .NET keep alive handler to prevent timeout

This post shows you how to create a simple keep alive for a .NET website so people can stay logged in whilst the page is open, instead of it timing out after 20 minutes.

umbraco How to reset the Umbraco admin account password

This post gives you simple instructions to help you reset the Umbraco admin password.

umbraco Umbraco Site Navigation Menu Model Example in C# MVC

This post gives you the basic code to loop through the pages in your site and populate the navigation model. It also gives you the code to add it to and call it from the cache.

dotnet Simple Reusable .NET Caching Example Code in C#

Caching is important because it can speed up your website or application. Here is a simple example for you to take away and re-use:

umbraco Umbraco HTML Sitemap Template Example Using Razor

Most websites will have an HTML sitemap. There is an easy way to create one in Umbraco using razor. Just follow these simple steps.

dotnet How to fix Font Awesome WebFont woff2 not found

If you are getting the error fontawesome-webfont.woff2?v=4.6.3 not found but you definitely know you have the file, here is how to fix it in IIS.

dotnet Switch between ajax and post back in the same form

I realised that I needed to change the mode of the form depending on which button was pressed. So I came up with this bit of javascript/jquery.