Tagged with favourite

How javascript objects work

This is a series of articles about how to use the javascript language features to write object oriented type code. It's designed for people who are already sold on the idea of bundling functionality up into objects and want to know the javascript way of doing things.
Published in Javascript on Sunday, August 17th, 2008

Saving server control properties to ViewState with custom attributes

Use custom attributes to take the tedious work out of creating server control properties that persist to ViewState. Declare a normal property and use an Attribute to tag it for storage to ViewState. See how to use reflection to see which properties need to be persisted.
Published in Server controls on Wednesday, August 13th, 2008

Form layout using negative margins

Use negative margins and light weight semantic markup to display a form with the labels on one side and form elements on the other. No tables or divs needed at all. Works in all browsers. Noone who wasn't a web developer would believe what a pain it is finding a good solution to this little problem.
Published in CSS on Sunday, July 27th, 2008

Generic method return types

Generics aren't just great for creating lists, they can also be used to return strongly typed information from a method. This example shows how to use a generic return type to parse any type of strongly typed primitive from a string.
Published in .NET on Monday, May 5th, 2008

Web Standards for ASP.NET developers

Find out more about doing web standards compliant development if you develop in asp.net.
Published in ASP.NET on Thursday, December 27th, 2007

DIY javascript stack trace

How to use arguments.callee to walk up the javascript call stack when you're doing something that a debugger can't help you with.
Published in Javascript on Saturday, May 12th, 2007

Using print stylesheets with ASP.NET themes

Using the @media css declaration to create a print stylesheet when you're using ASP.NET themes to automatically include stylesheets.
Published in ASP.NET on Monday, October 16th, 2006