Introduction:
In my previous article I have explained about C#
code to send mail using smtp from gmail,yahoo mail and live mail. In this
article I am going to explain about how to maintain scroll position on
postback.
Explanation:
To
maintain the scroll position on page wise set the MaintainScrollPositionOnPostback
property to true in Page
directive. Below is the sample code.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AutoPostBack.aspx.cs" Inherits="AutoPostBack"
MaintainScrollPositionOnPostback="true" %>
To maintain the
scroll position on application wise then add the below code in web.config.
<system.web>
<pages maintainScrollPositionOnPostBack="true"></pages>
</system.web>
Do
you like this article? Help us to improve. Please post your comments below.
Comments
Post a Comment