Solved

ASP.NET postback page location

Posted on 2012-04-13
1
481 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

Suggested Solutions

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…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

22 Experts available now in Live!

Get 1:1 Help Now