473,765 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Keep Scroll Position After Postback.

I have a <div> with Overflow = Auto and within it
have several controls that can cause postback. The problem
is that after every postback, the <div> would scroll back top.
Is there a way that the <div> could retain its scroll
position after postback?

Nov 19 '05 #1
2 2496
Hi parm:

Take a look at this 4guys article:
http://aspnet.4guysfromrolla.com/articles/111704-1.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 21 Oct 2005 15:08:19 -0700, "parm" <pa***@qedsoftw aresolutions.co m>
wrote:
I have a <div> with Overflow = Auto and within it
have several controls that can cause postback. The problem
is that after every postback, the <div> would scroll back top.
Is there a way that the <div> could retain its scroll
position after postback?


Nov 19 '05 #2
Tried smartnavigation

-------
Regards ,
C#, VB.NET , SQL SERVER , UML , DESIGN Patterns Interview question book
http://www.geocities.com/dotnetinterviews/
My Interview Blog
http://spaces.msn.com/members/dotnetinterviews/

Nov 19 '05 #3

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

Similar topics

8
2136
by: ed | last post by:
Does anyone know if ASP.NET 2.0 is going to incorporate "maintain scroll position on postback" in non-IE browsers like Firefox? This seems like an often requested feature on these newsgroups since the beta version of .NET. Microsoft heavily advertises it's .NET browser detection advantages, why not make some use of it and hope that Microsoft follows up their words with actions? as well as following up on their agreement from the...
5
15976
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. http://www.devhood.com/messages/message_view-2.aspx?thread_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 : <div style="vertical-align: top; height:200px;...
2
1734
by: Carlo Marchesoni | last post by:
I have an editable Datagrid and memorize its datasource with a Session variable. On each Page_Load I simply Bind the Datagrid. Everything works fine. The problem comes, when I have a lot of entries, I mean, more than fits on one page. The user will then scroll down and click on 'edit'. After the roundtrip he has to scroll down again in order to see the row in the editable state. Is there a way to keep the row's position and scroll...
4
1873
by: Emmanuel | last post by:
Hi, I have placed a DataList control inside a panel control to obtain a scrollable list using the overflow:auto attribute. The rows in the data list contains and edit LinkButton to enable editing of the selected row via postback. My problem is that if i click on the edit button of a row which is not immidiately visible in the scrollable list than i have to scroll down to find the row to be edited. Is there a way to resume the scroll...
3
6076
by: rmunson8 | last post by:
I have added Panel control to a web page which contains a GridView. The Panel's ScrollBars property is set to auto. When I select the Select CommanField button for a row (which obviously causes a postback), the scroll position resets to the top. I was unable to figure out how to not force a postback or how to reset the scroll position of the GridView. What are my options here?
5
10181
by: RobertK | last post by:
I have a table that displays one row of images (thumbnails). When a user clicks on an image it opens up a bigger image below it. The row has about 20 cells. I have a <divtag which allows the user to scroll left and right to see all the images. The problem is that when the user scrolls to the middle and clicks on the image. The click causes a post back and the page loads again and the scroll bar goes to the left. I need to know how to...
7
5618
by: Lit | last post by:
Hi, How can I capture the vertical scroll bar position for a Listbox. I have a Listbox of 100 items + when I click on it I post back remove the item selected. After returning to the client browser the list box scroll position is at the top.
1
3101
by: wmbrae | last post by:
I trying to make a javascript document reader in 2 frames. The left frame displays the document, the right frame shows a list of document links. This is as far as I got http://www.geocities.com/viewdoq/opening.htm (there are Firefox and Ie, and Ie version incompatiblities and clean-up which I will work on later) Does anybody have one ready made? I'd like to load the document and move the scroll position to where it was last viewed.
3
3418
by: Dan | last post by:
Hi, I made a form consisting of a lot of server-controls (dropdownlist, radiobuttonlist ...). Some controls have their property 'autoPostBack' = true because some things must happen when selectedvalue is changed. My problem: suppose that the property 'autoPostBack' of 20th control is true, each time the user changes the selectedvalue, he is sent back to the top of the form after postback. He has then to scroll down to find the 21th...
0
10164
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5277
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.