Search EggHeadCafe's Job Board
EggHeadCafe Silverlight WPF ASP.NET VB.NET C# Excel SQL Server SharePoint
search
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

WebArticlesForumsFAQs
JavaScript
ASP
ASP.NET
WCF

DatabasesArticlesForumsFAQs
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsFAQs
Excel
Word
Powerpoint
Outlook
Publisher
Money

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

Operating SysArticlesForumsFAQs
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
Lounge
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  Ask New Question With Power Editor

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
Reply    Reply Using Power Editor
  Rank Winnings Points
November 0 $0.00 0
October 0 $0.00 0
smart navigation works
K Pravin Kumar Reddy provided a rated reply on 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
Reply    Reply Using Power Editor
K Praveen Kumar Reddy MCTS.
  Rank Winnings Points
November 0 $0.00 0
October 0 $0.00 0

Smart Navigation is obsolete
vimal percy replied on 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
Reply    Reply Using Power Editor
  Rank Winnings Points
November 0 $0.00 0
October 0 $0.00 0

RE:Use MaintainScrollPositionOnPostback
Sushila Patel provided a rated reply on Friday, August 25, 2006 9:30 AM

<%@ Page  MaintainScrollPositionOnPostback=”true”>
Reply    Reply Using Power Editor
Microsoft Visual ASP/ASP.NET MVP
  Rank Winnings Points
November 0 $0.00 0
October 0 $0.00 0

check out
K Pravin Kumar Reddy replied on Friday, August 25, 2006 8:52 PM

hello

i gave u other link in that check that , u can do that using javascript...
Reply    Reply Using Power Editor
K Praveen Kumar Reddy MCTS.
  Rank Winnings Points
November 0 $0.00 0
October 0 $0.00 0