473,445 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASP.NET 2.0 SmartNavigation vs MaintainScrollPositionOnPostback?

I have just started created a web app in asp.net 2.0.

I am using a masterpage for header/footer stuff.

In my content page I am using MaintainScrollPositionOnPostback, and
while it does keep the scroll position there is a lot of flicker on
postback where as when I did this with asp.net 1.1 you could hardly
tell that a postback has happening.

Is there something else I need to do or did ASP.NET 2.0 remove the
flicker remove part of smartnav and just leave the part that maintains
the scroll position (thus the new name)?

Feb 21 '06 #1
3 8613
DWS
Cmay,

"AJAX" is currently only way to completely get rid of page flicker. I've
found page flicker caused by the maintainscrollposition varys by how much the
browser has to render, how far it moves down the page, and is much more
apparent in debug mode.

Check out this. New in ASP.Net 2.0 controls support focus
http://msdn2.microsoft.com/en-us/lib...rol.focus.aspx

The focus method above doesn'tt solve your flicker problem but you can
programatically control the postion of the page on postback. Example button
click event just call button.focus then on the postback the page comes right
back to the button.

Good Luck
DWS
"cmay" wrote:
I have just started created a web app in asp.net 2.0.

I am using a masterpage for header/footer stuff.

In my content page I am using MaintainScrollPositionOnPostback, and
while it does keep the scroll position there is a lot of flicker on
postback where as when I did this with asp.net 1.1 you could hardly
tell that a postback has happening.

Is there something else I need to do or did ASP.NET 2.0 remove the
flicker remove part of smartnav and just leave the part that maintains
the scroll position (thus the new name)?

Feb 21 '06 #2
DWS,

SmartNavigation does a lot more than just remember the position of the
scroll. As I understand it, it gets rid of nearly all the flicker by
loading the postback page in a hidden iframe, and then transfering that
content to the "visible" window when the iframe is done loading.

SmartNavigation is also very nice when you have a form that does a lot
of auto postbacks because SmartNav will not fill up your browsers Back
button with a new entry for each postback!

If smartnav is truly gone I will be really disappointed. The first
website I am building in asp.net 2.0 looks pretty crappy compared with
asp.net 1.1.

Feb 21 '06 #3
I did some more investigation and found that SmartNavigation has been
deprecated in asp.net 2.0.

However, it seems to work if you just manually type it into your page
directive, even though it doesn't show up in intellisense or in the
page property window.

When I had SmartNavigation and MaintainScrollPositionOnPostba*ck both
set it caused a stack overflow, but it looks like it is working ok
after turning off MaintainScrollPositionOnPostba*ck.

Feb 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: karim | last post by:
I have a datalist with an itemedittemplate. When I have smartnavigation on, I can't exit out from edit mode with EditItemIndex = -1. When smartnavigation is off, everything works fine. I know...
1
by: Jerad Rose | last post by:
I've done some investigating about various problems with the SmartNavigation feature. It seems to me that the general consensus is to avoid SmartNavigation like the plague. It's really a shame...
4
by: Bobby | last post by:
Hi all... I rather confuse using smartnavigation in my web application because if I set the "smartnavigation = true" then If I run my app, then after I post page that page, using event...
3
by: Nestus | last post by:
Hi, im developing a solution in ASP.Net, i have a page that i need to use the smartnavigation in true, the problem occurs when i put in the directive @Page SmartNavigation = true my page trhows a...
2
by: Wysiwyg | last post by:
Has anyone found a reasonable way to emulate smartnavigation functionality for any browser? I'd really like to avoid creating history entries when posting back to the same page. SmartNavigation...
5
by: Mogens Nielsen - Elbek & Vejrup A/S | last post by:
Hi, I can see from the msdn-docs that SmartNavigation is now obsolete. Why is that? The SmartNavigation feature has been replaced by MaintainScrollPosition, but the scoll position is not why...
2
by: Zamdrist | last post by:
Use of SmartNaviagtion appear to cause a serious perfomance hit, I'm not working with ASP.Net 2.0 yet so MaintainScrollPositionOnPostback=True isn't an option either. Is there a way I can...
0
by: Axel Dahmen | last post by:
Hi, I've tried using the Page.MaintainScrollPositionOnPostback property to keep the users' focus on the web control they are currently editing on AutoPostBack=true. Yet, there are cases when I...
0
by: =?Utf-8?B?Um9zYWxpbmQgUC4=?= | last post by:
Hello I have a very long aspx page that consists of several panels. I am using MaintainScrollPositionOnPostback = "true" in the page directive and framework 3.5. The scroll position on...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.