asp.net - How to set starting point for a webpage in C# -
my question how set starting point webpage when loaded. have information in content placeholder, when form containing content placeholder loaded instead of displaying information in content placeholder goes top , have scroll down every time. there way can make content place holder starting display point webpage?? in advance.
add html anchor in view want scrolled down to. on page load use java script move anchor. see how scroll html page given anchor using jquery or javascript?
here example assuming using razor section render
<a href="#contentanchor"> @rendersection("content") </a> <script type="text/javascript"> $(function() { location.hash = "#contentanchor"; }); </script>
Comments
Post a Comment