469,364 Members | 2,398 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,364 developers. It's quick & easy.

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 8452
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by karim | last post: by
1 post views Thread by Jerad Rose | last post: by
4 posts views Thread by Bobby | last post: by
3 posts views Thread by Nestus | last post: by
5 posts views Thread by Mogens Nielsen - Elbek & Vejrup A/S | last post: by
reply views Thread by =?Utf-8?B?Um9zYWxpbmQgUC4=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.