Morten Empeños blog

Software Development, MVC, Umbraco, Sitecore, TSQL and much more


Send email with Umbraco Cloud

Written Monday, November 20, 2017 by Morten Empeño

Umbraco Cloud does not offer SMTP services by default. That means you need to sign up for an SMTP service, and do a bit of work to make it possible to send emails from your Umbraco Cloud solution.
In this article I will describe exactly how to make it possible to send emails from an Umbraco Cloud solution, with a little help from SendGrid.


SQL Junction Tables

Written Thursday, November 02, 2017 by Morten Empeño

In this blog I explain how you can use a junction table, to establish a many to many relationship between two simple tables.
Using junction tables will help you keep a nice clean data structure with no redundant data.


Resharper Live Templates

Written Monday, October 30, 2017 by Morten Empeño

Resharper offers some of the most powerful tools, you can add to your toolbox, if you are a software developer. You probably know that Resharper offers a lot of tools, such as intelligent IDE’s for Java, Javascript, Python, Ruby and PHP, extensions for Visual Studio, .NET unit test runner, .NET decompiler and much more.


Running Sitecore in Live Mode

Written Sunday, October 29, 2017 by Morten Empeño

By default, Sitecore runs in publishing mode. That means that normally you run a publish process, after you have added or edited content. This is meaningful and relevant for your development and testing environment – and of course also for the production environment. But as a developer, it would be smart to have an opportunity for a local setup, where you are able to make content changes, and see the changes immediately, so that you save time on publishing, clearing site cache etc.


Sitecore Aliases

Written Sunday, October 29, 2017 by Morten Empeño

Sitecore aliases allows us to use shorter versions of urls, representing content items in our content tree. It could be used for a landing page or a campaign.


Literals and Column Names

Written Wednesday, October 25, 2017 by Morten Empeño

In this blog, I show how to mix literals and column names, and I explain how it can be useful to do so in specific contexts.


Conditional render in Razor

Written Sunday, October 22, 2017 by Morten Empeño

A simple way to show or hide a piece of markup based on a condition


Cached Stylesheets

Written Monday, October 23, 2017 by Morten Empeño

A simple solution to avoid stylesheets being cached


Custom Domains on Azure

Written Monday, October 23, 2017 by Morten Empeño

Here is a small description on how you can create websites with a custom domain name hosted on Azure.


CAPTCHA on MVC

Written Monday, October 23, 2017 by Morten Empeño

This blog is a short and easy description on how to implement CAPTCHA validation on a mail form in an ASP:NET MVC project.


No accessible constructor

Written Monday, October 23, 2017 by Morten Empeño

Setting up Unity in an MVC application with authentication may cause the error: The type IUserStore does not have an accessible constructor This blog describes why and how to fix it.


Periods in MVC urls

Written Monday, October 23, 2017 by Morten Empeño

This is a small blog, on how to handle 404 error caused by dots in an MVC url.


Supporting Experience Editor with Placeholders

Written Wednesday, October 25, 2017 by Morten Empeño

Userfriendly CMS - In Sitecore you can use Experience Editor with Placeholders to make it easy for the editor


Sitecore Installation Issues

Written Monday, October 30, 2017 by Morten Empeño

In this short blog, I am listing a number of common issues, you might face in your early career as a Sitecore developer. The issues are all related to the installation of Sitecore, which is the very first thing you need to do, to get your hands dirty, when learning about Sitecore.


Comment should not include code

Written Monday, October 30, 2017 by Morten Empeño

In the last few year I have been working as a Tech Lead, with the focus and the responsibility of code quality. Something which I see again and again, in the teams and the projects I am related to, is code being commented out, and still being checked in to our revision control. I guess the main idea of having commented code, is: Hey... I am trying something here, and I am not quite sure, if I should use this commented code at a later point.


Check in early

Written Thursday, November 02, 2017 by Morten Empeño

When doing software development in small SCRUM teams, it is important to have a strategy for how and when to check in code. I have been part of software teams for many years, and I have seen how different strategies work. Today I am very clear on what I find is the best approach, and I will describe and explain what I think should be the check in strategy.


Multiple database contexts with Unit of Work

Written Thursday, November 02, 2017 by Morten Empeño

In this blog I explain how you can fix the error: The relationship between the two objects cannot be defined because they are attached to different ObjectContext objects. In my case I ran in to the problem when building an application with a generic repository, using Unit of Work and using Unity for dependency injection.


CAST versus CONVERT

Written Friday, November 03, 2017 by Morten Empeño

In this very short blog I talk about how to use CAST and CONVERT in context of concatenate with nonstring values. I talk about how CAST and CONVERT can help you, when you want to convert a nonstring data type into a string.


HttpOnly Cookies

Written Friday, November 03, 2017 by Morten Empeño

In this short blog I will discuss the use of HttpOnly cookies.