Chandra sekhar
Chandra sekhar

Reputation: 167

Controlling the page from reaching the top of the page

I have a registration page with many fields and DDl's when i scroll down and select the ddl value then the page going to top of the page and again i have to scroll to the control and have to select the page.How to control the page by stopping at the control even though the value is changed.

Upvotes: 0

Views: 34

Answers (1)

yogi
yogi

Reputation: 19601

Use MaintainScrollPositionOnPostback="true" in Page directive

Something like this

<%@ Page MaintainScrollPositionOnPostback="true" %>

to know more about this Go here.

Alternatively you can, put this in Web.config to make this setting global, By this

<?xml version="1.0"?>
<configuration>
  <system.web>
    <pages maintainScrollPositionOnPostBack="true">
    </pages>
  </system.web>
<configuration>

Upvotes: 1

Related Questions