Disable Automatic Scrolling/Positioning

J

Jeffrey T.

Using Visual Studio 2008/sp1, I have created a new ASP.NET Web Application
(not Site) that makes use of master pages.

Whenever I view a page in the browser (IE7), the page automatically scrolls
down a bit. The "taller" the page, the more it automatically scrolls
downward in the browser.

To be clear, when I run the app (F5) and a page initially appears, it shows
up in the browser as expected, and then about 1/100 second later it scrolls
downward in the browser - as if attempting to center the display vertically.
The top-most part of the page is out of view.

What could be causing this? and more importantly, how can I stop this
annoying behavior? What I am wanting is for the page to appear and display
the top-most portion in the browser. Any scrolling should be performed by
the user.

Thanks!
 
G

Guest

Using Visual Studio 2008/sp1, I have created a new ASP.NET Web Application
(not Site) that makes use of master pages.

Whenever I view a page in the browser (IE7), the page automatically scrolls
down a bit. The "taller" the page, the more it automatically scrolls
downward in the browser.

To be clear, when I run the app (F5) and a page initially appears, it shows
up in the browser as expected, and then about 1/100 second later it scrolls
downward in the browser - as if attempting to center the display vertically.
The top-most part of the page is out of view.

What could be causing this? and more importantly, how can I stop this
annoying behavior?  What I am wanting is for the page to appear and display
the top-most portion in the browser. Any scrolling should be performed by
the user.

Thanks!

How does it happen? Do you perform a postback?

Check if you have no SmartNavigation property enabled, and no
javascript to put the focus on some objects of your page (i.e.
textboxes)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top