Blog posts

71 results found

71 results in .NET, Community, DevOps, Git, Web

dotnet How to show UTC time relative to the user's local time on a .NET website

This post gives you the code I found to help you get a user's country and culture code and display a UTC date and time relative to the user who is viewing in their browser.

dotnet How to move your code out of the controller and into a helper class

This video expands on what I said in my tutorial and actually shows you how to move your code out of the controller and into a helper class.

dotnet How to inline CSS and JavaScript bundles in MVC

This post shows you how you can combine bundling and minification with inline styles and scripts in MVC.

dotnet How to fix the error 'The name 'Scripts' does not exist in the current context'

This post shows you how to fix the error "The name 'Scripts' does not exist in the current context"

dotnet What is .NET Core? 7 Things you should know.

This post explains to you what .NET Core is, what it is used for and tells you whether you need to use it or not.

dotnet How to fix the error 'The following sections have been defined but have not been rendered for the layout page...'

This post shows you how to solve the error 'The following sections have been defined but have not been rendered for the layout page "~/Views/Master.cshtml": "Head; ScriptsBottom; etc; etc".'

dotnet How to add reCAPTCHA to an MVC form

This blog post makes it easy for you to set up Google reCAPTCHA on your MVC website. It also works with Umbraco.

dotnet Open-source Project: Password Generator

I recently caught the bug of contributing to open-source projects after my first pull request was accepted. I enjoyed it so much that I decided to make an open-source library for my password generator. It is a C# .NET project.

dotnet How to change a form in MVC to submit with AJAX

In this video you will see how to change the form to submit using AJAX. I recorded this video live for my livecoding channel. The code I wrote for this tutorial is further down this post.

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#.

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.