November 2, 2006

Web Control Enhancements in ASP.NET 2.0

‘m sure by now you’ve read more than your share of books and articles describing new ASP.NET 2.0 features. Master pages, themes, providers, etc., are all great, but have you read anything regarding what’s changed with custom Web control development? Well that’s what I’m here to tell you. If you’ve

Determine which Proxy Pattern You Need

The proxy pattern can be used in situations where multiple copies of a complex object must exist. In order to reduce the application’s memory footprint in these situations, you create one instance of the complex object along with multiple proxy objects, all of which contain a reference to the single

Reverse Engineer .NET DLLs

If you’ve ever wanted to know how something in the .NET Framework does what it does, check out .NET Reflector. This awesome utility will reverse engineer compiled .NET dlls back into C# or VB.NET code. The example below is the reverse-engineered implementation for String.GetHashCode: public override unsafe int GetHashCode(){ fixed

Printing an HTML Page in Landscape Mode

JavaScript does not allow you to set the page orientation so you can print in Landscape mode. To workaround this limitation, simply add the following code to the … part of any HTML page: Next, add @media to allow the page to print in landscape mode. To do this, define