Welcome to imar.spaanjaars.com

image
Welcome to the personal web site of Imar Spaanjaars where I write about software development with a focus on Microsoft web technologies
Image representing the FAQs category

How Do I Make a Full Table Row Clickable Using jQuery?

Published 13 years ago

Back in 2004, I wrote an article about making a full table row clickable using JavaScript, so you could click anywhere in the table row to browse to a new page. That solution used quite a bit of in-line JavaScript to accomplish that task which adds to the size and complexity of the page. Since then, the JavaScript landscape has changed quite a bit with the introduction of JavaScript libraries such as Prototype and jQuery. Because my initial article is in the top 10 results for "full row select javascript" on Google, I figured it made sense to write a new, cleaner and more modern version of it using one of those libraries: jQuery.

Read on ...
Image representing the Blogs category

6 Tips to Improve Code Downloads for your Blog

Published 13 years ago

Don't you just hate it? You read an interesting programming related article on the web that comes with source code. You downloaded the source so you can look at it later. When you open the file later, you've long forgotten where you got the file, or which concept it was supposed to demonstrate. Worse, the download contains a gazillion files, making it pretty impossible to find the stuff you're looking for yourself. Rather than two or three files demonstrating the topics originally discussed in the article you read, you're faced with a gazillion ReSharper cache files, useless .suo and .user files, obj folder and more. Take, for example, this article "Using Dynamic Views In ASP.NET MVC 2" (note: I am not picking on the author here personally; it's just an example I ran into recently that shows most of the problems I face with code downloads; it's easy to come up with many other examples). The relevant code is only 18 lines long (7 in the View and another 11 in a controller class), yet when you unpack the zip file you get 79 files. Granted, some are needed to run the example as an MVC site, but with a bit of clean up, the number of files can easily be reduced to 27 plus 1 by following these simple tips.

Read on ...
Image representing the Articles category

Welcome to the WebMatrix - Introducing Microsoft's new Web Stack

Published 13 years ago

Ever since Microsoft released ASP.NET in 2002, web developers have been able to use a powerful platform to build a wide range of web applications and services. But this power comes at a price. Getting started with ASP.NET takes quite some time and effort. Before you can run your first Hello World page, you need to download and install a lot of software, taking up quite a bit of time and bandwidth. You need Visual Web Developer (Express), you need SQL Server (Express or any other version) and you may need IIS if you want to test out more realistic scenarios, some of which require special privileges for the account you use on your machine. Once you have all the tools, the real work begins. My latest book, Beginning ASP.NET 4 in C# and VB needed 803 pages to take you from a developer newbie to a competent ASP.NET web developer.

In other words, you're facing quite some hurdles when you want to start developing web applications on the Microsoft platform, especially if you're a hobbyist web developer.

To make the Microsoft stack more appealing to beginning web developers, Microsoft is introducing WebMatrix.

Read on ...
Image representing the Articles category

Using Grouping instead of Distinct in Entity Framework to Optimize Performance

Published 13 years ago

On a number of pages on this web site I display a list of articles. For example, the home page shows a list of all articles from all categories. The FAQs page shows articles from the FAQs category only. Internally, the content items in the database (sorted in the Content table) are linked through a junction table to the Roles table. This enables me to publish content targeting specific roles. Anonymous users see content for the Anonymous role only, while, for example, I as the site administrator can see content that is assigned to the Administrators role only. I use this in order to add content to my site which is not public yet.

Read on ...
Image representing the Blogs category

Sketch and Prototype Tools Review - Part - 6 - And the winner is...

Published 13 years ago

Over the past couple of weeks I've been reviewing a number of Sketch and Mockup Tools. You can find the complete series here:

For now I won't be reviewing any other tools as I haven't worked with them (extensively) enough to say something useful about them. Thanks to everyone who contributed suggestions for additional tools to review.

To close off the series, I'll briefly recap the five tools and give my opinion of the one(s) I liked best.

Read on ...
Image representing the Blogs category

Sketch and Prototype Tools Review - Part 5 - Microsoft Expression Blend 4 + Sketch Flow

Published 13 years ago

As a software designer and web developer I usually focus on the back end of web sites and applications and leave the User Interface and UX design to people more knowledgeable. Still, occasionally I have the need to do some sketching and drawing with a customer, for example when designing a web interface or when working on use case documents. While paper and pencil often work fine, they lack durability and the result is hard to share, especially with "digital" clients or clients in a different country. Over the years, I've been working with a number of software design tools to aid me in this process. Since I get asked which tools I use every now and then, I decided to write a short blog series outlining a number of these tools, including Balsamiq Mockups, Axure RP Pro, Microsoft Visio with the 'GUUUI Sketchy GUI Shapes', Pencil, and Microsoft's SketchFlow.

In this series I'll be (re)creating a design mockup for the Management section of my web site with each of the tools, giving you the opportunity to compare their output. You'll find a screen shot of the existing Management section at the end of this article.

Today's tool: Microsoft Expression Blend 4 + SketchFlow

Read on ...
Image representing the Blogs category

Book Review: .NET Performance Testing and Optimization by Paul Glavich and Chris Farrell

Published 13 years ago

I recently got the chance to review the book .NET Performance Testing and Optimization by Paul Glavich and Chris Farrell published by Simple Talk Publishing. Since I am usually a "performance aware" coder and try to think about performance right from the start, I was looking forward to this book with the hopes to learn a few new tricks, techniques and tools. Having read it now, I am not disappointed.

Read on ...
Image representing the Blogs category

Sketch and Prototype Tools Review - Part 4 - Pencil

Published 13 years ago

As a software designer and web developer I usually focus on the back end of web sites and applications and leave the User Interface and UX design to people more knowledgeable. Still, occasionally I have the need to do some sketching and drawing with a customer, for example when designing a web interface or when working on use case documents. While paper and pencil often work fine, they lack durability and the result is hard to share, especially with "digital" clients or clients in a different country. Over the years, I've been working with a number of software design tools to aid me in this process. Since I get asked which tools I use every now and then, I decided to write a short blog series outlining a number of these tools, including Balsamiq Mockups, Axure RP Pro, Microsoft Visio with the 'GUUUI Sketchy GUI Shapes', Pencil, and Microsoft's Sketchflow.

In this series I'll be (re)creating a design mockup for the Management section of my web site with each of the tools, giving you the opportunity to compare their output. You'll find a screen shot of the existing Management section at the end of this article.

Today's tool: Pencil 1.2.

Read on ...
Image representing the Articles category

Using .Less to Change the Way You Write Your CSS

Published 13 years ago

I wanted to write a post about .Less for some time, but never found the right time to do so. Now that I am changing my own web site from ASP.NET Web Forms to ASP.NET MVC 2, I thought it was a good idea to incorporate .Less (pronounced as Dot Less) in my own web site and write a little blog post about it

Read on ...
Image representing the Blogs category

Sketch and Prototype Tools Review - Part 3 - Microsoft Office Visio 2010

Published 13 years ago

As a software designer and web developer I usually focus on the back end of web sites and applications and leave the User Interface and UX design to people more knowledgeable. Still, occasionally I have the need to do some sketching and drawing with a customer, for example when designing a web interface or when working on use case documents. While paper and pencil often work fine, they lack durability. Additionally, the result is hard to share, especially with "digital" clients or clients in a different country. Over the years, I've been working with a number of software design tools to aid me in this process. Since I get asked which tools I use every now and then, I decided to write a short blog series outlining a number of these tools, including Balsamiq Mockups, Axure RP Pro, Microsoft Visio with the 'GUUUI Sketchy GUI Shapes' stencil, Pencil, and Microsoft's Sketchflow.

In this series I'll be (re)creating a design mockup for the Management section of my web site with each of the tools, giving you the opportunity to compare their output. You'll find a screen shot of the existing Management section at the end of this article.

Today's tool: Microsoft Office Visio 2010.

Read on ...

Mobile: False

Crawler: True

I: False