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
Solved

scroll the page to a specified position after postback

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mail.To.Add 5 33
Object Oriented Programming, C#, referencing, scoping. 13 69
asp Google Map 2 23
asp.net mvc , views, hidden values ? 2 16
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…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

791 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