开发者

asp.net ValidationSummary location/focus

开发者 https://www.devze.com 2023-03-03 23:12 出处:网络
I am using asp.net ValidationSummary. my form is 1.5 of the screen which means user can not see the complete form at a time and s/he has to scroll. The ValidationSummary is located at the bottom of th

I am using asp.net ValidationSummary. my form is 1.5 of the screen which means user can not see the complete form at a time and s/he has to scroll. The ValidationSummary is located at the bottom of the page. User is at the top of the page and error occurs then s/he won't be able to see the ValidationSummary because neither this control gets focus nor it makes the browser scroll down to show itself. The case is same if user 开发者_如何学编程is at the bottom of the page and ValidationSummary is at the top.

Please suggest how to show this ValidationSummary automatically ?


I find the validation summary isn't the most user friendly for long forms especially when scrolling appears.

Why not remove the validation summary and highlight the fields with the errors with a validation errror message beside the control and a visual idicator beside the submit button? This appraoch would be a lot mroe user friendly


Why don't you move the ValidationSummary to the top then?

Or just style the ValidationSummary.

This is a UI problem, not a technical one.

0

精彩评论

暂无评论...
验证码 换一张
取 消