[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

asp.net  -  Maintainscrollpositiononpostback does not work

Posted on 2011-05-04
3
Medium Priority
?
2,012 Views
Last Modified: 2012-05-11
I am working with VB in VS 2.0 - please supply solution in VB.

Maintainscrollpositiononpostback does not work in Chrome or Safari browsers.

I have tried adding "MaintainScrollPositionOnPostback="true"" to the Page Directive, also
Page.MaintainScrollPositionOnPostBack = True in the code behind.

I read your solution and added the 2 registrations for Ajax (I cannot see them now so I am going from memory, but they were written just below the aspx source page declaration) but my project did not compile, the message said something like "cannot find objects to register".

Can you assist ? I would like the scroll position to be retained on postback for not only IE and Firefox, but also Chrome and Safari

Thank you.
0
Comment
Question by:GregoryNelson
  • 2
3 Comments
 

Accepted Solution

by:
GregoryNelson earned 0 total points
ID: 35696130
Thank you.  Can I ask further question s?

1)  I tried the first link which didnt work - I followed the advice of Max and mKamoski in the link and created a SafariFix.browser.xml file with those 7 lines but of course nothing was referencing it so presumably it just sat in the root directory and did nothing.  
Should there be references to it?  from where ?  what about RefID's for different browsers and versions?


2)  I did not try the second solution as I do not know JQUERY.  Should I just copy and paste into the aspx source code (html/javascript) page ?  Do I need any references on the top below Page Directive or anything ??

Many thanks for your patience

Greg Nelson
0
 

Author Closing Comment

by:GregoryNelson
ID: 35775436
Because this Q was open for some time and no-one was answering it so I thought I should close it.

In the end I had to differentiate between browsers, allowing mainstainscrollposition to apply to those browsers that accepted it and used control.focus (not really too good) form those that did not.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question