Friday, June 29, 2007
Thursday, June 28, 2007
Wednesday, June 27, 2007
Tuesday, June 26, 2007
Monday, June 25, 2007
Love Deadlines
"I love deadlines. I like the whooshing sound they make as they fly by." --Douglas Adams
Friday, June 22, 2007
Thursday, June 21, 2007
Wednesday, June 20, 2007
Walking on Water
Tuesday, June 19, 2007
Monday, June 18, 2007
Friday, June 15, 2007
Thursday, June 14, 2007
Wednesday, June 13, 2007
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; }
}
}
Tuesday, June 12, 2007
Safari on Windows
The Safari 3 Public Beta claims that it is...
"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."
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.
Monday, June 11, 2007
Friday, June 08, 2007
Thursday, June 07, 2007
Wednesday, June 06, 2007
Tuesday, June 05, 2007
"Beware of bugs in the above code; I have only proved it correct, not tried it." --Donald Knuth
Monday, June 04, 2007
"The trouble with programmers is that you can never tell what a programmer is doing until it's too late." --Seymour Cray