473,549 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET 2.0 SmartNavigation vs MaintainScrollP ositionOnPostba ck?

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 MaintainScrollP ositionOnPostba ck, 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 8620
DWS
Cmay,

"AJAX" is currently only way to completely get rid of page flicker. I've
found page flicker caused by the maintainscrollp osition 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 MaintainScrollP ositionOnPostba ck, 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 MaintainScrollP ositionOnPostba *ck both
set it caused a stack overflow, but it looks like it is working ok
after turning off MaintainScrollP ositionOnPostba *ck.

Feb 21 '06 #4

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

Similar topics

0
1161
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 smartnavigation has problems. It seems this is one of them. I am thinking of simulating smartnavigation using anchor links. Anyone had success with...
1
1265
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 that such a potentially handy feature has been rendered useless because of all of the bugs surrounding it. Has Microsoft acknowledged the existence...
4
1498
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 dropdownlist1_selectedIndexChanged then the page would't get the css, and then the IE will generate error confirmation dialog, then my browser will be...
3
1871
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 error in the next line, i really dont understand why the page trhows that error. Here is the line that make the error. Response.Write("<script...
2
2005
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 takes care of the annoying problem caused by creating a new history entry when a page posts to itself. Only Internet Explorer will support this...
5
4263
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 we're using the feature. It is mainly to avoid the flickering when posting back. However we've got another project running, for which we would like to...
2
1953
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 persist the user's scroll position in a datagrid, are there any other options? Thanks
0
1534
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 DON'T want the scroll position to be maintained on postback, e.g. when server-side errors occur, being displayed at the top of the page. With...
0
994
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 postback is maintained properly as long as the y-coordinate is not larger than 4000. Is there a limit on how large the y-coordinate can be when using...
0
7518
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7715
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7469
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7808
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6040
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.