Custom Validators for Composite Controls

I have created several custom composite controls (containing multiple input fields) and validators for our website at work.

I needed the SetFocusOnError property to work on my customĀ validators, but it didn't work by default.Ā 

I started to dig through ASP.NET's JavaScriptĀ code and found that if my custom composite controlĀ was enclosed inĀ a table tagĀ (instead of the default div tag)Ā that the JavaScriptĀ would search theĀ table tagĀ for input controls.

The following code will change the default enclosed tag from a div to a table.

public class LengthEditor : CompositeControl
{
protected override HtmlTextWriterTag TagKey
{
get { return HtmlTextWriterTag.Table; }
}
}

Read More »

Safari on Windows

Steve Jobs just announced that Safari 3 has a Public Beta available for the Windows platform. You can grab the beta at Appleā€™s download website.

The Safari 3 Public Beta claims that it isā€¦
<blockquote cite="http://www.apple.com/safari/">
ā€œThe fastest web browser on any platform, Safari loads pages up to 2 times faster than Internet Explorer 7 and up to 1.6 times faster than Firefox 2.

And it executes JavaScript up to 2.8 times faster than Internet Explorer 7 and up to 1.6 times faster than Firefox 2.ā€
</blockquote>

I am interested to see how the population responds to the new Windows Safari 3 browser. I wonder what changes, if any I will need to make to my websites to support Safari 3.

Read More »

6 Phases of a Project

ā€œThe Six Phases of a Project: 1. Enthusiasm 2. Disillusionment 3. Panic 4. Search for the Guilty 5. Punishment of the Innocent 6. Praise for non-participants.ā€ ā€“Unknown

Read More »

Error Free Code

"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." --Steve McConnell

Read More »

Picture Memory

ā€œA picture may be worth a thousand words but it uses up a thousand times more memory!ā€ ā€“Unknown

Read More »