In ASP.NET 1.1, when you want to set a control as the default focus button (that is, the default focus is on this control), you may use the JavaScript code, while in ASP.NET 2.0 In the middle, don't have these troubles, in the form code, use
DefaultButton and DefaultFocus properties can be, such as