search
Japanese Chinese Nederlands Espanol Italiano Deutsch Francais Twitter Rss Feeds
MicrosoftArticlesForumsFAQs
C# .NET
VB.NET
Visual Studio .NET
ADO.NET
Xml / Xslt
VB 6.0
.NET CF
GDI+
LINQ
Deployment
Security
FoxPro
Silverlight / WPF
Entity Framework
RIA Services

Web ProgrammingArticlesForumsFAQs
JavaScript
ASP
ASP.NET
Web Services

Non-MicrosoftArticlesForumsFAQs
NHibernate
Perl
PHP
Ruby
Java
Linux / Unix
Apple
Open Source

DatabasesArticlesForumsFAQs
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsFAQs
Excel
Word
Powerpoint
Outlook
Publisher
Money

Operating SystemsArticlesForumsFAQs
Windows 7
Windows Server
Windows Vista
Windows XP
Windows Update
MAC
Linux / UNIX

Server PlatformsArticlesForumsFAQs
BizTalk
Site Server
Exhange Server
IIS

Graphic DesignArticlesForumsFAQs
Macromedia Flash
Adobe PhotoShop
Expression Blend
Expression Design
Expression Web

OtherArticlesForumsFAQs
Subversion / CVS
Ask Dr. Dotnetsky
Active Directory
Networking
Uninstall Virus
Job Openings
Product Reviews
Search Engines
Resumes

 

View Other Visual Studio .NET Posts   Ask New Question 
Reset Scroll Position
vimal percy posted at Friday, August 25, 2006 3:17 AM
Hello I have 2 pages
I is the Parent page which contains fixed set of contents and IFrame is the child page which i use to do the functionalities.

Now when i click save in IFrame it submits the page and keep the same scroll position after post back. I tried all possible way to get that page load from Top ie Top and left scroll postion is 0,0. But it always loads with the old scroll position the page was in

I have also set Page.MaintainScrollPositionOnPostBack = False and still no luck.

Thanks for the help

 
  smart navigation works
K Pravin Kumar Reddy replied at Friday, August 25, 2006 4:57 AM
hello

To avoid this, ASP.NET provides the SmartNavigation property for the page which takes care of the scroll position.

SmartNavigation also avoids the flickering of the page when the page is reloaded.

It can be enabled by simply setting its value to true in the page directive, as follows:-

<%Page smartNavigation="True" %>

Alternatively, it can be specified as a global setting in the web.config as follows:-

<configuration>
<system.web>
<pages smartNavigation="true"/>
</system.web>
</configuration>


in ur looking smartnavigation using javascript check it

http://www.codeproject.com/useritems/smartnavwebctrls.asp
 
Smart Navigation is obsolete
vimal percy replied at Friday, August 25, 2006 7:01 AM
I tried using Smartnavigation but the complier says 
SmartNavigation is obsolete and recommends setfocus or maintain scrollpositiononpostback.

But i tried both of them and it doesnt work at all.
Need help
 
  RE:Use MaintainScrollPositionOnPostback
Sushila Patel replied at Friday, August 25, 2006 9:30 AM
<%@ Page  MaintainScrollPositionOnPostback=”true”>
 
check out
K Pravin Kumar Reddy replied at Friday, August 25, 2006 8:52 PM
hello

i gave u other link in that check that , u can do that using javascript...