Use page property maintainScrollPositionOnPostBack="true"
Step 1:- Web.config
<configuration>
<system.web>
<pages maintainScrollPositionOnPostBack="true">
</system.web>
</configuration>
Step 2:- Page Level
<%@ Page Title="Home" Language="C#" MasterPageFile="~/Masters/Layout.Master" MaintainScrollPositionOnPostback="true" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="Demo.Home" %>
its not working for me... i mentioned maintainscrollpositiononpostback both on master page and web config..still not working
ReplyDeletei tried both your steps.. even after that the page refereshs and moves to top
ReplyDelete