Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / November 2004

Tip: Looking for answers? Try searching our database.

Going to a position in Web page after page refresh

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WM Chung - 19 Nov 2004 05:55 GMT
Hi all,

I have a long Web page which need vertical scrolling. If I work on the GUI
at bottom of Web page, e.g. clicking a button or selecting an item in List
box, the page refreshes. After page refreshing, the page is automatically
located at the top. This is inconvenient as I need to scroll back to the
location at which I work. Can it be located at the original location, instead
of the top,  after the page refreshing ?

Thanks in advance.
W.M. Chung
John M Deal - 19 Nov 2004 06:47 GMT
Here's a link to a page that shows how this can be done:

http://www.codeproject.com/aspnet/AspNetScrollbarMove.asp

Hope it helps.

Have A Better One!

John M Deal, MCP
Necessity Software

> Hi all,
>
[quoted text clipped - 7 lines]
> Thanks in advance.
> W.M. Chung
Saurabh Nandu - 19 Nov 2004 07:29 GMT
Try enabling SmartNavigation=true on the ASP.NET web page. This will auto
generate a script that will return the user back to the position he was
before the PostBack. Although this script works generally on IE only.
C-Services Holland b.v. - 19 Nov 2004 10:27 GMT
> Hi all,
>
[quoted text clipped - 7 lines]
> Thanks in advance.
> W.M. Chung

Using HTML anchors could do the trick. Just tell it in the URL to goto a
specific anchor.

Signature

Rinze van Huizen
C-Services Holland b.v.

jdn - 20 Nov 2004 04:21 GMT
>> Hi all,
>>
[quoted text clipped - 10 lines]
> Using HTML anchors could do the trick. Just tell it in the URL to goto a
> specific anchor.

Or better, create a JavaScript function that will accomplish this and wrap
it in a .NET function.

jdn

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.