473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Restore scroll position of a DIV over postbacks

There are a few references on the net about how to restore a page's scroll
position over a postback.
eg. http://www.devhood.com/messages/mess...read_id=104625

My question is : can the same thing be done to restore the scroll position
of a specific DIV within a page? I have a DIV section which scrolls
independently to the page - on each postback it is scrolling back to the
top.

Could someone tell me how?
Nov 18 '05 #1
1 1843
"JezB" <je***********@blueyonder.co.uk> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
There are a few references on the net about how to restore a page's scroll
position over a postback.
eg. http://www.devhood.com/messages/mess...read_id=104625

My question is : can the same thing be done to restore the scroll position
of a specific DIV within a page? I have a DIV section which scrolls
independently to the page - on each postback it is scrolling back to the
top.

Could someone tell me how?


You would have to create your own "SmartNavigation". But SmartNavigation has
known problems with ASP.NET, so maybe not.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: GrantS | last post by:
I am trying to convert the VB.Net code example povided by http://authors.aspalliance.com/JimRoss/Articles/MaintainScrollPos.aspx into C# (ASP.Net)without success. No errors are thrown in the VB...
5
by: JezB | last post by:
There are a few references on the net about how to restore a page's scroll position over a postback. This is a simple one which works for me: eg....
3
by: Alan Silver | last post by:
Hello, I have a datalist which I am using to view and modify some data. When the user clicks the "edit" link, the appropriate cell is moved into edit mode, as specified in the EditTemplate. ...
0
by: jasondavidcarr | last post by:
Hello all, I have a "comments" page that contains three sections; the article to be commented on is on top, followed by previous comments, and on the bottom a place to add new comments. It's a...
6
by: C. Moya | last post by:
I hope someone has an answer: MaintainScrollPositionOnPostback works great. But, the problem is that sometimes we need to manually reset the scroll position back to the top (such as when hiding a...
1
by: limonn | last post by:
Hi guys i m trying to find a way to restore the scroll position in an applet. I was trying : (document.all)?document.applets.scrollTop:window.pageYOffset); ...
1
by: db007 | last post by:
Hi, I have a problem with a current project and the scroll position. I have an AJAX enabled website using Visual Studio 2005 and ASP.Net 2.0. The project also uses masterpages. On the...
1
by: Mark | last post by:
Hi. I have a page which has an update panel covering all of it. When I do a server postback via the update panel, the screen remains in the same scroll position - which is ok most of the time....
4
by: Paul Engel | last post by:
I have an application on which I have a tab control with two tabs. When a user double-clicks on an item in tab1 of my tabs collection, tab2 becomes the visible tab. (tabImageTabs.SelectedIndex = 1)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.