Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to scroll to bottom of page when postback finish in asp.net?

How to scroll to bottom of page when postback finish in asp.net?

I have many details in page when I click "Show Detail" in master detail, this page show many data in my page. So how to to scroll to bottom of page automatically?

like image 668
monkey_boys Avatar asked Dec 16 '09 02:12

monkey_boys


People also ask

How to scroll down to bottom of the page in asp net?

also Hot key Ctrl +End will take you directly to the bottom of the page.

How do you maintain the scroll position?

To make sure a scrolling Artboard stays in position when you click on a prototype Link, select the Link you're working with and enable the Maintain scroll position after click option in the PROTOTYPE tab of the Inspector.


1 Answers

from Hosam Kamel's page

To maintain the scroll position for the large web page you can use on of these methods :

1- use Web.config page section <pages maintainScrollPositionOnPostBack="true" />

: this will maintains the scroll positions for all the web site pages.

2- in the page declaration <%@ Page MaintainScrollPositionOnPostback="true" %> : this will maintains the scroll position for this page only.

3- programmatically from code behind System.Web.UI.Page.MaintainScrollPositionOnPostBack = true; : this will maintains the scroll position for this page only (the same as page declration).

like image 159
ram Avatar answered Sep 21 '22 17:09

ram