SetFocusOnError of asp Validator controls not working in Firefox

Posted by Somu475 under C# on 2/27/2013 | Points: 10 | Views : 2716 | Status : [Member] | Replies : 1
Hi All,

I have a Listview in which I'm using Insert and Edit Item Templates.

I am using asp Validator controls and specified SetFocusOnError = "true" for all controls.

When the validation fails the first control which contains invalid data should be focused.

This is working fine in IE and Chrome, but it is not focusing in Firefox browser.

Please someone help me to solve this problem.



Posted by: Somu475 on: 2/28/2013 [Member] Starter | Points: 25

Hi All,

While trying to solve the above mentioned problem, I found some interesting facts.

If I use ShowSummary="true" and ShowMessageBox="false" in Validation Summary then it is focusing properly in all the Browsers.

If I use ShowSummary="false" and ShowMessageBox="true" in Validation Summary then it is focusing properly in IE and Chrome but not in Firefox.

But my requirement is to display MessageBox.

Hope someone can help me to solve it out.


Somu475, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response