Jan 27, 2014

ASP.Net validation summary causes page to jump to top - Stack Overflow

ASP.Net validation summary causes page to jump to top - Stack Overflow:



Two possible work arounds:
Disable client validation and jump to correct position on post back:
* set EnableClientScript="false" for all validation controls (disabling client validation)
* set MaintainScrollPositionOnPostback="true" in Page directive
Disable the scrollTo function in javascript:
<script type="text/javascript">
    window.scrollTo = function() { }
</script>

No comments:

Post a Comment