Scroll to Top of page using VB.NET in ASP.NET
This article defines How to automatically scroll back to the top of the page.
This article defines
How to automatically scroll back to the top of the page.
If your pages are long
winded, it's a good idea to provide viewers with an easy way to automatically
scroll back to the top of the page. This script displays a stationary control at
the lower right corner of the window that when clicked on gently scrolls the
page back up to the top. Instead of always being visible on the user's screen,
the script lets you specify how far down the page.
Add the following code
in the head section of the page.
This section has the
reference of the .js file which named as scrolltopcontrol.
Now Adding the .js
file in the project directory under the scripts folder. This file is attached
with download file. We can download it from that and attach with the project.
Now Adding a scroll
control in the jquery file. This
control is also attached with download file.
Scroll control will be
display when your page is long winded.
Now run the
Here scroll is in
Now Drag scroll to
down of page Then scroll control will be display.
Now click on the
Scroll control to top of the page.