Solved

scroll the page to a specified position after postback

Posted on 2006-07-17
4
587 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now