asp.net Validation摘要位置/焦点
我正在使用 asp.net ValidationSummary。我的表单占屏幕的 1.5,这意味着用户无法一次看到完整的表单,他/她必须滚动。 ValidationSummary 位于页面底部。用户位于页面顶部并且发生错误,那么他/她将无法看到 ValidationSummary,因为该控件既不会获得焦点,也不会让浏览器向下滚动以显示自身。如果用户位于页面底部且 ValidationSummary 位于顶部,则情况相同。
请建议如何自动显示此 ValidationSummary ?
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现验证摘要对于长表单来说并不是最用户友好的,尤其是在出现滚动时。
为什么不删除验证摘要并突出显示有错误的字段,并在控件旁边显示验证错误消息,并在提交按钮旁边显示视觉指示器?这种方法对用户来说更加友好
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
那为什么不将
ValidationSummary
移到顶部呢?或者只是 样式验证摘要。
这是一个用户界面问题,而不是技术问题。
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.