Archive for .NET

Only allow a certain role to see MiniProfiler results – MVC .NET

I am a big fan of MiniProfiler. It is perfect for development to see that you keep your code at best performance. However, wouldn’t it be nice to have the results available on your live server too? I thought so and here’s how to get…

Continue reading →

Creating a custom new Visitor Group Criteria in EPiServer 7

A visitor group criterion is used in EPiServer to let editors choose criterias when certain content should be showed or not. EPiServer comes with a few default ones but usually you need to create your own ones. Here is a little guide on how to…

Continue reading →

Convert a LinkItemCollection to a list of PageData in EPiServer 7

I found a nice little snippet from Joel Abrahamsson on how to convert a LinkItemCollection to a list of PageDatas instead. So I used his code as a base to update it to EPiServer 7.

Continue reading →

Add database diagram on SQL Server 2008 easy

Ever had this error? “Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a…

Continue reading →

Minifying & bundling CSS/Javascript in .NET

It all started a while ago with a little speed test on my dating site Vibbar when I was refactoring some code there. In the heat of the moment (long nights pre-release) I hadn’t minified nor bundled any of the CSS/javascript we are using there, resulting…

Continue reading →