to lock the screen from scrolling out of the page.. [Resolved]

Posted by Suniluc under ASP.NET on 3/4/2013 | Points: 10 | Views : 1756 | Status : [Member] | Replies : 2
Hi ,
I want to lock my web pages from scrolling out of the page view.so i used line 2 in my master page...then i got this error...plz help..

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The directive 'page' is unknown.

Source Error:


Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.Master.cs" Inherits="BVIS.SiteMaster" %>
Line 2: <%@ Page MaintainScrollPositionOnPostback="true" %>




Responses

Posted by: Somu475 on: 3/4/2013 [Member] Starter | Points: 50

Up
0
Down

Resolved
Hi Suniluc,

It won't support in master page.
Refer the following site.
http://justgeeks.blogspot.in/2009/04/keep-scroll-position-on-aspnet-page.html

You have to use MaintainScrollPositionOnPostback="true" in content pages or in Web.Config file for global declaration.

Please mark as answer if it helps you.

-Somu

Suniluc, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Suniluc on: 3/4/2013 [Member] Starter | Points: 25

Up
0
Down
Thank you Sonu...that helped a lot,I will check whether it's working...and get back to you...

Suniluc, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response