Solved

scroll the page to a specified position after postback

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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