.NET Data Access strategies overview

November 29, 2008 – 1:40 am
Due to the increasing number of data access strategies being introduced to .NET with little guidance on which to use I decided to create an overview of the different methodologies available. This is really just a cheatsheet for myself but maybe it's useful to others as well...

Configure SSL for multiple host headers in IIS using wildcard certificate

June 3, 2008 – 3:26 am
You have a web server running IIS (Internet Information Services), your web server has only one IP address, and you have been using host headers to run multiple websites of the one IP address. Now, you want to configure SSL on one or more of your websites. What to do? This article will show you.

How to cache portions of ASP.NET pages

June 2, 2008 – 9:03 pm
This article will demonstrate a complex and real world example of how to implement ASP.NET output caching on portions of your pages. My next article will explain the more difficult task of how to programmatically clear the cache whenever you choose!

What’s the CSS equivalent for the nowrap attribute?

June 1, 2008 – 11:28 pm
If you've been using the HTML attribute nowrap to prevent text from wrapping in table cells (for example), you can do the same via cascading style sheets (CSS).

Storing data in HTML elements using attributes

June 1, 2008 – 8:24 pm
This article aims to illustrate 2 useful concepts. Firstly, to illustrate how to use the getAttribute and setAttribute methods of the DOM (Document Object Model) to "store" or "attach" data to DOM elements. Secondly, to show how this can be used as a way to "pass" data to Javascript event handling functions.

Prevent session timeout in your ASP.NET AJAX application

May 29, 2008 – 9:35 pm
Here's an interesting problem I encountered recently. With a traditional ASP.NET web application each time a user requests a page from the server, the server will reset the user's session timeout counter and hence prevent the user's session from timing out. However, suppose I have an AJAX.NET application which is using AJAX calls and client-side Javascript to periodically update part of a page; for example I'm periodically updating a list of meeting events for the user. Do the AJAX calls keep my session alive?

Accessing session state during an AJAX.net web service call

May 29, 2008 – 9:14 pm
Ok, so you have an ASP.NET web application. From your client-side Javascript you're making an AJAX.NET callback to a web service on your web server. This is great but how do I access ASP.NET session state information from this seemingly isolated web service? My thoughts exactly... well fortunately, the answer is pretty simple.

Javascript, the DOM, and memory leaks

May 29, 2008 – 8:21 pm
Having recently starting implementing more Ajax into my web applications I discovered a new issue today that I've never considered or encountered before in my 10+ years of using Javascript; namely memory management and memory leaks. This is actually an issue involving both Javascript and the DOM.