Friday, January 14, 2011

Maintaine Scroll Postion After Postback In ASP.Net

0 comments 1/14/2011
Sign up to receive our site updates!
In this article i am going to shows how to Maintain Scroll Position After PostBack.

The MaintainScrollPositionOnPostback page property attribute allows to do that in different ways as follows...

It is must need property for long pages...





1.In page directive tag


<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" MaintainScrollPositionOnPostback="true" %>


2.In code behind page by setting property

Page.MaintainScrollPositionOnPostBack = true;


3.In Web.Config file


    <system.web>
      <pages maintainScrollPositionOnPostBack="true"/>
      system.web>
Your Ad Here

0 comments:

Respects for your's Questions & Opinions

  • Friends
  •  

    Recent Posts

    New Comments

    Copyright 2008 All Rights Reserved Tech Tasks Template by Rajesh Kumar Chekuri