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 Blogs category

Want to Be My Colleague?

Published 16 years ago

Do you want to be my colleague and get involved in the projects I am working for? Now is your chance, because we're hiring...

Read on ...
Image representing the Articles category

Fun With Extension Methods - Extending Response.Redirect

Published 16 years ago

How often have you written code that redirects to another page and passes some local variables? You probably use string.Format to make your code easier to read. E.g.:

int categoryId;
// Code to assign a value to categoryId here
Response.Redirect(string.Format("SomePage.aspx?CatId={0}", categoryId.ToString()));

Have you ever wished there was an overload of the Redirect method that allowed you to omit the call to string.Format and simply let you write something like this:

int categoryId;
// Code to assign a value to categoryId here
Response.Redirect("SomePage.aspx?CatId={0}", categoryId.ToString());

This code makes it much easier to redirect to a page with a number of variables in the Query String. All you need to do is provide a composite format string as the new URL and a bunch of values that are used instead of the placeholders.

With Extension Methods - that come with .NET 3.5 - you can easily accomplish this yourself.

Read on ...
Image representing the Blogs category

My New Project

Published 16 years ago

Now that Amazon has spilled the beans, I might as well tell you what the new project is that I am working on, and why it has been so quiet for some time on my own web site.

Read on ...
Image representing the Blogs category

Beta 2 of Visual Studio 2008 (Orcas) Available

Published 16 years ago

Today Microsoft released beta 2 of Visual Studio 2008.

Read on ...
Image representing the Blogs category

What Does it Take to Be an MVP ASP.NET?

Published 16 years ago

A couple of days ago I received an e-mail from a visitor to my site. He wanted to know a couple of things about the design and architecture of my site.

Read on ...
Image representing the Articles category

Custom Sorting with N-Layer Design Classes and the GridView

Published 16 years ago

Over the past couple of months I received a number of questions related to sorting with the classes from my N-Layer Design article series and the GridView. The good thing is: it isn't that hard; it's just that you need to know how to do it....

Read on ...
Image representing the Blogs category

Half a Million Articles Read on Imar.Spaanjaars.Com!!

Published 16 years ago

Today my web site has reached a very interesting milestone: It registered the 500,000th article view. A good moment to look back a bit, and see what happened with my site during the past few years.

Read on ...
Image representing the Blogs category

VB.NET Version of the Code for the N-Layer Design Articles Now Available

Published 17 years ago

My on-line friend Peter has been so kind to translate the code for the Contact Manager Application from my articles about N-Layer Design to Visual Basic.NET.

Read on ...
Image representing the Blogs category

New Orcas Preview Release Available

Published 17 years ago

In case you hadn't noticed yet: Beta 1 of Visual Studio Orcas is out....

Read on ...
Image representing the Snippets category

Fun With Linq!

Published 17 years ago

Quite often I have discussed the impossibility of joining data from a database with that of the file system. I discussed it with my team members, mentioned it in trainings and wrote about it recently in this article.

Being able to join data from a database with other data from a file system could be very useful though.

Read on ...

Mobile: False

Crawler: True

I: False