Delegates and func to the rescue
I have recently been spending some time implementing T4Mvc in a project I started a while ago. Everything went fine untill I realised a html helper I had got some nasty side effects. Fortuanly I could...
View ArticleVerify your authorization with t4
Since I started doing MVC instead of webforms I have mostly been a happier guy but verifying your Authorization was easier in Webforms in my opinion. With a little bit of T4 love it can bee easy in MVC...
View ArticlePlugin existing code into ckeditor
In this post I will show you how to build plugins for CKEditor. I will focus on how can take your exisiting functionality and integrate into the editor without rewriting everything.
View ArticleKnow your ide, code navigation
In this series of post I plan to share usefull features of Visual Studio 2010. In this first part the focus is on how to avigate your code.
View ArticleNavigatablecss - a visual studio plugin
Have you ever wished your CSS files where easier to navigate? I did and as I had to do some VSX research anyway I decided to write and extension to help me.
View ArticleElmah on steroids
Error logging is an important tool in knowing the health and quality of you website after you deploy. I will look at how to enhance ELMAH in this post.
View ArticleNavigatablecss
A while ago I posted about my visual studio plugin NavigatableCss that helps you to navigate your css files. Now I fixed some of the last issues and I am ready to make it public.
View ArticleQuicktip, debug without rebuilding
In this post I will show you how you can attach the debugger to a process in Visual Studio instead of rebuilding the project.
View ArticleRestyle wpf checkboxes
Have you ever feelt that the WPF/SL checkboxes looks dull and a bit "clumsy"? If you have this post will show you how you can restyle it.
View ArticleAvoid the pain of magic strings
Magic strings are evil and should be avoided as much as possible. In this post I will show how you can create strongly typed SelectList in ASP.NET MVC.
View ArticleLinq-to-sql and nullable values
Yesterday I came across a bug with Linq-To-Sql I hadn't seen before. I tried to filter on a nullable column and when the value was null it failed
View ArticleHey, get in line
Today when I was applying the module pattern in my javascript I got an error saying "invalid label" in Firebug.
View ArticleLazy initialization with func
This post is about how you can use Func to intialize properties in a lazy while avoiding some if logic.
View ArticleMake t4mvc a little bit better
I really like T4MVC. Using it for links and css is a bit painful though. Luckily you can solve this with HTML helpers.
View ArticleScript optimization with firebug
While it's said that practice makes perfect I don't want my CPU hogged when I visit a site. With Firebug we can avoid these vicious scripts.
View ArticleUrl shortners the safe way
If you are anything like me you like to know, or atleast have a chance to know, where links go before you click them. Here is my proposal on how shorterners could make this possible.
View ArticleMvcminiprofiler and ef
MvcMiniProfiler is an awesome tool for profiling your asp.net application. To get it to work's with EF might be a hassle though.
View ArticleBatch insert with ef4
Sometimes you need to push large amounts of data to the database in one go. Using EF4 there is now a possibility to use ExecuteStoreCommand() which I will explain today.
View ArticleA slightly more readable mvcminiprofiler
I think the MiniProfiler is brilliant. In fact I use it at any new project. It bothers me that the syntax is a bit clumsy out of the box though. A few simple helper methods can mitigate this.
View ArticleUsing the sqlbulkcopy to batch inserts
Sometimes you need to insert large amounts of data into your Sql Server. There is a hidden gem in the .net framework that is really good at this, the SqlBulkCopy Class.
View Article