« How to Create a Standardized Web Site Development Workflow | Smiley Cat Web Design 2004 Portland Lindy Exchange »

ASPnet Validator.SetFocusOnError Property

June 22 2006

Handy little property if you want to make correcting error messages on a form a bit easier. By setting the BaseValidator.SetFocusOnError Property (System.Web.UI.WebControls) to “true” the form focus goes automatically to the field whose validation fails. If multiple fields fail validation it focuses to them in source order.

Tags:

Comments ()