Solved

ASP.NET postback page location

Posted on 2012-04-13
1
483 Views
Last Modified: 2012-08-14
I have a dropdownlist in the middle of a page.  When the value is changed in the dropdownlist, I have the AutoPostBack property set to True, which I want.  My issue is that when the user changes the value of the dropdownlist and the page posts back, the view of the page is automatically set back to the top of the page, forcing the user to scroll down to the middle of the page again to finish what they were working on.

My question is, is there any way to have a postback and not move the location of the page to the top?
0
Comment
Question by:zintech
1 Comment
 
LVL 3

Accepted Solution

by:
nilesh31 earned 500 total points
ID: 37844007
You need this page directive:
<%@ Page MaintainScrollPositionOnPostback="true" ... %>

Hope this helps
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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…

777 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