www.planetwrox.com Now Live!!

Posted by: Imar Spaanjaars at Tuesday, February 19, 2008 6:09:40 PM in: Imar's Blogs
The demo web site that is used in my new book - www.planetwrox.com - is now available on-line.
Read on ...

Grrrr, I Hate automatic Spam Detection Systems

Posted by: Imar Spaanjaars at Saturday, February 09, 2008 10:22:43 AM in: Imar's Blogs
I just spent some time answering a question I received from someone called Bill who found an old thread on the p2p.wrox.com forum. 10 seconds after I sent my reply, I received the following automatic reply.
Read on ...

Dirty Tricks for Dirty Problems

Posted by: Imar Spaanjaars at Sunday, February 03, 2008 1:23:10 PM in: JavaScript
A while ago I needed the ability to display a "no image available" image in a list of products when an image for that product was not available on the server.
Read on ...

Talking About My Generation

Posted by: Imar Spaanjaars at Sunday, February 03, 2008 12:10:04 PM in: Imar's Blogs
Ever since I posted my article series about N-Layer design, people asked me if I use any code generators to create the basic framework for the classes used in my model. The usual answer was: yes, I do, but I use a home grown code generator for it, making it impossible to share it with others. Fortunately, that has changed....
Read on ...

Woohoo It's Done!!!

Posted by: Imar Spaanjaars at Thursday, January 31, 2008 7:20:28 AM in: Imar's Blogs
A few days ago I sent in the last corrections for my new book Beginning ASP.NET 3.5 with C# and VB.
Read on ...

Want to Be My Colleague?

Posted by: Imar Spaanjaars at Friday, January 18, 2008 9:51:40 PM in: Imar's Blogs
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 ...

Fun With Extension Methods - Extending Response.Redirect

Posted by: Imar Spaanjaars at Friday, August 31, 2007 10:17:25 PM in: .NET 3.5 General

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 ...

My New Project

Posted by: Imar Spaanjaars at Friday, August 24, 2007 9:21:12 PM in: Imar's Blogs
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 ...

Beta 2 of Visual Studio 2008 (Orcas) Available

Posted by: Imar Spaanjaars at Thursday, July 26, 2007 8:48:03 PM in: Imar's Blogs
Today Microsoft released beta 2 of Visual Studio 2008.
Read on ...

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

Posted by: Imar Spaanjaars at Wednesday, July 18, 2007 6:21:12 PM in: Imar's Blogs
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 ... 12345678910111213141516171819202122232425262728293031