Top benefits of Dependency injection

What is Dependency injection? Dependency injection is a software design pattern that separates the construction of a dependency from its usage. This means that you can focus on writing your code without worrying about how to instantiate each object, and the dependencies will be injected at runtime. The dependency injection pattern was introduced in the…

| |

How to enable dynamic GZIP compression on Azure Web App

Go to the Kudu on Azure First should go to Kudu on Azure. Please visit https://docs.microsoft.com/en-us/azure/app-service/resources-kudu to get more insights. You can just add “scm” to your azure web app URL as follows. Find CMD console Then, you should navigate to the CMD console: Find the application Config folder Click on the “Site root” icon…

|

Best keyboard shortcuts for .NET development

A keyboard is an essential tool for programmers, whether coding or just typing away. Some keystrokes can save time using your computer and make it easier to get things done. A shortcut might seem like a simple combination of two or more buttons pressed at the same time, but there’s actually tons of power behind…

How to control content fields and tabs visibility in Umbraco CMS

Hiding properties and tabs in Umbraco CMS This post illustrates the idea of how you can control and restrict the visibility of content (node) parts, such as fields and properties for Umbraco back-office users (based on the role).While Umbraco allows you to restrict the whole node to specific user groups, sometimes, this may not be…

| |

Deploying ASP .NET app to FTP with Azure DevOps CI/CD pipeline

What you will learn In this post, I will show how to configure the Azure DevOps pipeline – to easily publish an ASP .NET app to FTP server. How to configure the pipeline (5 easy steps) FtpUpload task is essential, please check the last step. To deploy all your files to the desired FTP location,…

How to manage Personal Access Tokens with Azure DevOps panel

Managing personal access tokens (PATs) can be difficult and time-consuming because they are long strings of characters that are hard to memorize or keep track of. It’s easy to lose your PAT, which means you’ll need to create a new one – this process is tedious and takes up valuable time. Azure DevOps has made…

Umbraco’s best packages (free and paid)

Packages are like spices, Umbraco is your meal. Plugins give Umbraco additional functionality, the ability to do more things faster and better way. They extend the possibilities Umbraco has by default and can be a great benefit for every Umbraco-based website. Umbraco CMS does not have so many packages like WordPress but continues to have…

Essential productivity tips and techniques you should know (Updated)

Time is the most valuable resource that we have on this planet and you are the only person who is in charge of this precious asset. In this blog post, we will explore productivity tips and methods to prioritize tasks, manage time effectively to help you make life easier and happier. Essential tips to make…

How to use Sort option to organize Umbraco CMS Content

Sorting content in the Umbraco back office tree seems like an obvious function. However, several times, I have found out that people who start working with Umbraco are not aware of this feature. The well-organized & sorted content has several advantages: Editors can easily arrange the order of any elements by themselves. The back office…

Getting domains list for node programmatically in Umbraco CMS

Once you define hostnames for a Content node in Umbraco CMS in the back office –  it’s easy to get the list in C# within a few lines of code. To do so you should use the IDomainService and grab the instance. You can get service instance using static service locator as follows: The IDomainService has a very easy-to-use…

How to add roles to members programmatically in Umbraco CMS

Let say we have a member with email umbraco-member@piotrbach.com The system has two member groups named: “Customers” and “Partners” To add a member to both roles you can use a handy method called ‘AddUserToRoles’ available in ‘System.Web.Security’ namespace: You need to specify the user name and desired membership groups (roles) array and that’s it. Once you…