I have a validationsummary control which displays the summary of a few validationrequired controls and all of them belong to a validationgroup.
My submit button also has the same validationgroup so it validates everything upon it being clicked.
The problem i am having is setting the focus to the validationsummary control after validation occurs when my submit button is clicked.
The focus goes to the top of my webform.
I need the focus to be put at the validationsummary control.
How do i achieve this?
FYI:SetFocusOnError="true" did not work.
Thanks for reading.
Best Answer
Try this http://forums.asp.net/t/967952.aspx. I haven't verified it. But the last reply said it's working.
Also, you could try
MaintainScrollPositionOnPostback="true"
so that at least the focus is the same as before it's posted back.