The validation controls now (starting with ASP.NET 2.0) allow you to easily set focus on a control in error using the SetFocusOnError property:
<asp:RequiredFieldValidator
SetFocusOnError="true"
ErrorMessage="Enter something" ControlToValidate="TextBox1"
runat="server" />