Solved

scroll the page to a specified position after postback

Posted on 2006-07-17
4
606 Views
Last Modified: 2008-01-16
hi, experts:

is there any way to scroll the page to a specifield position after postback?

after click a server-side button, the page post back and scroll to the page top. can i do something to scroll it to a position after postback?

thanks
viola
0
Comment
Question by:viola123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 16

Expert Comment

by:Swapnil Piparia
ID: 17128225
Hi viola123,
you can do it by inbuilt feature smartnavigation
you can configure it in web.config by following way
<pages smartnavigation="true|false"/>

true for on smart navigation
false for off smart navigation

Regards,
NetSwap
0
 
LVL 3

Accepted Solution

by:
harshits earned 500 total points
ID: 17128238
Hi,

To maintain the page scroll after a postback, just set the MaintainScrollPositionOnPostback property on the Page.  You can do this declaratively (in your aspx Page directive) like so:

<%@ Page MaintainScrollPositionOnPostback="true" ... %>

Harshit Sheth
0
 
LVL 14

Expert Comment

by:Ramuncikas
ID: 17128314
0
 
LVL 7

Expert Comment

by:osiris247
ID: 17128431
You may also want to look into using 'atlas' - asp.net's free AJAX framework... http://atlas.asp.net

Steve
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 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