.comment-link {margin-left:.6em;}


Tuesday, September 07, 2004

Bug in ASP.NET validator (!)

This morning I opened a service call at Microsoft for this weird behaviour of the ASP.NET validator.

I just received a mail where Microsoft confirms this IS a bug.

As soon as I have more information, I will post it here...

Update 08/09: I received a confirmation of Microsoft that it is a bug in Internet Explorer. Unfortunatly, they are not going to release a quickfix. So I guess we'll have to wait for the next Service Pack...

Untill then you can use on of these workarounds:
- Use a ValidationSummary
- Put the validators next to the textboxes
- Set their Display to Static
- Use another browser
- Unplug the mouse of the end users, that way they have to use the TAB-key
- Just ignore it ;-)


  • Please find below solution for one of your problem i.e. Validator controls getting focus. To resolve this issue please do following steps:
    1. Add following in all of your validator controls:

    Here ControltoValidateControlID same as value given in ControlToValidate Property of your Validator controls.

    2. Add following Javascript function in your ASPX page:
    function ChangeFocus(ControltoValidateControlID)

    This will sort out your problem and if still you face any problem then let me know.


    Gurdarshan Singh
    Lead Software Engineer
    InterGlobe Technologies Pvt. Ltd.
    Global Business Park, Tower C,
    M.G. Road, Gurgaon
    Contact No: (0124) 2565265 Extn: 2633
    Mobile #: 9891397798

    Always Think Positive whatever may be the Situation.

    By Anonymous Anonymous, at 5:24 AM  

Post a Comment

Links to this post:

Create a Link

<< Home

Stefanie Worm is het liefste vrouwtje van de wereld.
Melina is de liefste schatsie van de wereld (Erik De Maeyer).