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 ;-)
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 ;-)
1 Comments:
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:
onmouseup="ChangeFocus('ControltoValidateControlID');"
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)
{
document.Form2.getAttribute(ControltoValidateControlID).focus();
}
This will sort out your problem and if still you face any problem then let me know.
Regards,
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
www.interglobetechnologies.com
Always Think Positive whatever may be the Situation.
By Anonymous, at 5:24 AM
Post a Comment
<< Home