Welcome, Guest [LogIn] / [Register] / [Forgot Password ?]
Home > Technical Tips > ASP.Net > Return user in same position on page after postback event in asp.net ?
Return user in same position on page after postback event in asp.net ?
Posted by Saurabh Kumar on Wednesday, Sep 30, 2009
| More

how to return the user to the same position in the client browser after postback in asp.net ?


When Web pages are posted back to the server, the user is returned to the top of the page. On long Web pages, this means that the user has to scroll the page back to the last position on the page.
When the MaintainScrollPositionOnPostback() property is set to true, the user is instead returned to the last position on the page.


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

Rudik  says :
April 01, 2010 at 09:11 pm
In ASP.NET version 2.0, the SmartNavigation property is deprecated. Use the SetFocus method and the MaintainScrollPositionOnPostback() property instead.
Cecil  says :
November 22, 2009 at 09:46 pm
what about smartnavigation=true?
Ajay Abhishek  says :
October 11, 2009 at 05:58 pm
its ok, nice details provided by u. thanks. Mr. Saurabh
Add Your Comments/Suggestions :
Name:
Email:
Website:
Your Comments:
 
(required)
(will not be published) (required)


©Copyright 2010 saurabhdeveloper.com