Chirag Patel's LAB

Thursday, December 20, 2007

Setting focus during a validation error

The validation controls now (starting with ASP.NET 2.0) allow you to easily set focus on a control in error using SetfocusOnError property...

<asp:RequiredFieldValidator
SetFocusOnError="true"
ErrorMessage="Enter something" ControlToValidate="TextBox1"
runat="server" />
Posted by jUsTcHiRaG at 8:28 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Just Me

jUsTcHiRaG
Edison, New Jersey, United States
just one of you...
View my complete profile

Blog Archive

  • ▼  2007 (19)
    • ▼  December (19)
      • Speed Optimization in ASP.NET 2.0 Web Applications
      • Google Checkout
      • SQL Interview questions
      • Ways to improve SQL performance
      • Date format validation
      • Email validation Script
      • IP address to long and Long value to IP address st...
      • Random string and Random numbers of variable length
      • Working with UTF8 characters...
      • Credit card validation
      • "Using" keyword in Data Access Base classes..
      • Url rewritting in some simple steps...
      • FTP Operation in just 4-5 lines...
      • Regular Expressions
      • IDisposable interface...
      • ID3 tag reader
      • How to locate control nested inside of another con...
      • Setting focus during a validation error
      • How to maintain the position of the scrollbar on p...