472,340 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,340 software developers and data experts.

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 8548
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...
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...
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...
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...
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...
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...
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...
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...
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...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

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.