Ajax requests are only possible when the protocol, domain and port number are the same. But sometimes you want to do Ajax calls to a different domain for example when you are creating a shared service that people should be able to call using Ajax or when you are developing locally and you are testing on a remote server. There are multiple ways to get around this restriction for example by using CORS, an iFrame or JSONP. In my last project I got around the restriction using JSONP, so I will explain that here. See links for more information about solving it using CORS.
When I First heard about the Entity Framework I thought there was only one correct way of implementing it and that is using the Code First approach. Now I am not that sure anymore. In this article I will explain the various approaches and their advantages and disadvantages.
Have you ever heard about the term Inversion of Control (IoC) or dependency injection but you dont know exactly what it is or why you need it then continue reading. If you have never heard about it before and you are a developer then keep on reading also! Its a really cool way of programming (design pattern) and it can help you a lot in the future and its not that difficult 😉
In this blog I will give you some tips how to improve the searchability of your website. I will regularly update this blog with new tips. If you have other tips please feel free to add a comment to this blog.
Today I was working on a project that uses EPiServer version 6. As you probably know EPiServer 6 is still using webforms, not MVC. For SEO optimalisation we needed to rewrite incoming URL’s to make them uniform. For example all these URL’s should go to the same page
For SEO it is important that there is only one valid URL. Other URL’s should throw a statuscode 301 and redirect to the correct url. For this I needed to do some URL rewriting in EPiServer.
Sometimes you want to store settings in a config file like web.config or app.config for your modules. In this small tutorial I will show you how to do that. I will not only show you how to define your own sections but also how to put this config in a separate file.
In this small tutorial I will show you how to enable Web Deploy in visual studio 2013 for your own windows server. Its really easy but if you don’t know where to start it can still be very frustrating. Continue reading
Seriously ‘Invalid email or password’. I know for sure that it was correct, or wasn’t it? Are you in the same situation and resetting your password the old school way doesnt work for you then here is a solution to hack your back into GitLab. To make this work you need of course root access to your GitLab server.
GitLab is a great tool to manage your repositories. Its not a replacement for tools like GIT or SourceTree but a nice addition to the total GIT workflow. Installing GitLab is easy, just follow the instruction on this page but configuring it so that you can push and pull from it can be more complicated. Especially if you want to change some if its default behaviour.
Sometimes you want to able to save data that is not a page or a content block. Examples could be data like comments created by visitors or orders in your webshop. An easy way to save such data is using EPiServers build-in Dynamic Data Store.