Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Maintaining scroll after postback

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 310
    Comment on it

    While handling postback if we have pages with large data it should scrolls. So when doing that postback occurs and the position where last scroll is done gets lost by the browser.

    So for doing that we can use the page property which can make the things easier to handle it from their side

     

    After writing the below line into our code the browser will handle the scroll from its end:

     Page.MaintainScrollPositionOnPostBack = true;
    

     

    This piece of code is browser dependent may work on one browser and not on others.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: