SmartNavigation and why not to use it

SmartNavigation seems to be a nice feature - it allows Internet Explorer to handle PostBacks in a very clever way. You don't have to worry about having a long site - it will return to the point where you have been before. Or if you define some events - SmartNavigation will enable you to invoke the handlers without posting the page back to the server.

But: If you are going to program a serious website for users of different browsers (Netscape, Opera, Konqueror or Safari) you need to turn SmartNavigation off, because it simply doesn't work with this kind of browsers.

Another aspect is the following behaviour reported in the newsgroups (and not verified by myself ;): If you would like to put the focus on some objects of your page (i.e. textboxes), you usually use JavaScript:

   Page.RegisterClientScriptBlock("focus", _

or (VB.NET)

   Page.RegisterClientScriptBlock("focus", _
      "<script language=""JavaScript"">" & _
         "document.<id-of-your-control>.focus();" & _
      "</script> ")

But: Try it with SmartNavigation turned on: It simpy won't work on some systems. The reasons are unknown, but it seems to be, as if IE won't interpret the script correctly.

Sad, isn't it?


  • am facing problem when &quot;Smart Navigation&quot; turned on.My forms has got 2 and more panels inside multipage.If We browse through the same page for long time,the events are not recognised.The browser (IE 6)showing some error(probably java script error).If someone have a better idea what to do,please let me know.

    Thanks in advance,

  • When i turn on smartnavigator my application seems to get stuck when i enter a detail screen and press a Cancel button to get redirected back. Kinda strange behaviour but very wrong.

  • Hmmm... turned this on and it is a dream-come-true. Tested with Netscape 4,6, &amp; 7 and all works fine. Probably will have an issue eventualy, till then I am lovin it.

  • There are problems with smartnavigation. I have an page that does form validation and displays a javascript alert if there are errors with the submission. But the js alert gives back an error (&quot;Invalid Pointer&quot;) if smartnavigation is turned on.

  • can somebody tell me why SmartNavigation=&quot;true&quot;

    doesn't prevent the form from screen flickering when I work with treeView on that page? It looks agly when after each click on the node the page is redrawn.

    Any idea how to prevent it?

  • smartnavigation does problem when the popup window is opened and alongwith it the parent page is refreshed. Under this situation, the parent window comes at top instead of popup window.

  • using SmartNavigation=&quot;true&quot; anihilates the CSS Stylesheet after a postback.

    The stylesheet being linked in header and using IE6 as a browser.

    The HTML (aspx) document is loaded in a Frameset.

  • I have found that SmartNav crashes Internet Explorer (fully patched as of current) when the page includes CSS styles containing expresssions refering to page elements (DIVs in my case).

  • Seems also as SmartNav looses the CSS-Styles after first postback, if it is a &lt;link&gt; and added at runtime..

  • When SmartNavigation = &quot;true&quot; i get the page.urlreferer as always null.

    SmartNavigation is a very good feature, but it behaves in a errotic manner some times.

  • Mate I don't know what kind of application you have in mind that is causing SmartNavigation to behave in an 'errotic' manner.

  • So if it's acting &quot;errotically&quot;, is it causing a lot of unwanted popups?

  • my server.transfer is not working properly when i turned on smartnavigation

  • Does anyone know of an alternative to holding scroll position on a postback?

  • There's also a problem with SmartNav turned on. Try typing a open single quote (The sign directly below the Esc button on most keyboards) preceding some text in a textbox., e.g. `test. Click on a button to make it post back. My textbox dissappears!!!

    SmartNav is truly buggy. I hope Microsoft does something abt this.... :(

  • smart navingation doesn't work when i am using layers. my page contains a layer which again contains controls... when smart navigation turned on, only the outer page is smart navigated... not the inner one...

  • I was looking for some errotic behavior so i turned on SmartNav.

    It Works! I am now typing with one hand!

  • In my page, i have the set the SmartNav = true. On any pastback event, page will disapperars. When i check the server side events using the event log, every thing is fine.

    i mean, after postback event, page will not load as expected. we are using IE 6.0 version.
    Please guide me.....

  • I found lot of problems when smart navigations set to true. i try to use javascript, but not work...

  • I have experienced something similar. In our case we have a page being displayed in Pocket IE on Windows CE.Net 4.2 device. After approximately 600 refreshes the browser locks up.

    Repeating the same experiment on a Windows XP machine running IE 6, the problem does not occur.

    The page does explicitly set focus to a input of type text.

  • I have turned on the "Smartnav" and works only after the second time I click on button. why?

  • I have a javascript which writes menu dynamicall. When I use SmartNavigation=ture, the menu does not shows. I broke my head and also a colleague's head to get rid of the problem.

  • Microsoft says: use SetFocus and MaintainScrollPositionOnPostback insead.

    (Smartnavigation is obsolete)

  • That's true. But where to use that Focus() method ?

    Shahaji Udar

  • btw how can we set SmartNavigation for a page??

  • im using devex controls,when smart navigation is turned on it is giving script errors

  • Wonderful post but I was wanting to know if
    you could write a litte more on this topic? I'd be very grateful if you could elaborate a little bit more. Cheers!

  • Oh kittens yes. This is the perfect reason I was born. To find you, my
    long lost blogging soul-mate.

  • Hmm it seems like your website ate my first
    comment (it was extremely long) so I guess I'll just sum it up what I had written and say, I'm thoroughly enjoying your blog.
    I as well am an aspiring blog writer but I'm still new to everything. Do you have any helpful hints for beginner blog writers? I'd certainly appreciate it.

  • I really like what you guys are usually up too. Such clever
    work and coverage! Keep up the very good works guys I've added you guys to blogroll.

  • Thanks , I have recently been searching for information
    about this topic for ages and yours is the greatest I've found out till now. But, what in regards to the conclusion? Are you positive in regards to the source?

  • Hello! I could have sworn I've been to this website before but after checking through some of the post I realized it's new to me.
    Anyways, I'm definitely glad I found it and I'll be
    book-marking and checking back frequently!

  • Pretty section of content. I just stumbled upon your blog and
    in accession capital to assert that I acquire really enjoyed account your blog posts.
    Anyway I’ll be subscribing to your augment and even I achievement you access
    consistently fast.

  • Thanks so much for writing all of that the first-rate information!

    Looking forward to checking out more posts!

  • 3. Holidays are when many of the presents are purchased and shared.
    a mysterious personage who, in the bleak light of dawn one Christmas morning, stumbled on a
    foundling - a baby camera tenderly wrapped in a little travel rug and gently place in a tiny wicker
    sleigh, discretely left at her front door.

  • aluminum curtains rods have been much lighter than those steel rods that we previously used-

  • Articles with informative content something
    like yours have been a breath of fresh air. I
    thoroughly enjoyed every thought you made in your material.
    I am with you on your original views and unique content. Thank you.

  • Yes it could be argued the opening ‘flash forward’ is
    unnecessary and that the intriguing way that the story is
    set up – each character is deliberately set aside
    with on screen name captions – doesn’t actually pay off with the type of
    intricate ‘character study’ it was doable,
    it’s still admirable that a potentially silly premise is
    treated with such square-jawed conviction.

  • Hi there, just became aware of your blog through Google, and found that it's really informative. I'm gonna watch
    out for brussels. I'll appreciate if you continue this in future. Many people will be benefited from your writing. Cheers!

  • I visited various sites however the audio feature for
    audio songs existing at this web site is actually excellent.

  • Its like you read my mind! You seem to know a lot about this, like you
    wrote the book in it or something. I think that you could do with a few pics to drive the message home
    a little bit, but other than that, this is wonderful blog.
    An excellent read. I'll certainly be back.

  • Heya are using Wordpress for your site platform?
    I'm new to the blog world but I'm trying to get started and set up my own.

    Do you require any html coding knowledge to make your own blog?
    Any help would be really appreciated!

  • What's up i am kavin, its my first time to commenting anywhere, when i read this piece of writing i thought i could also make comment due to this brilliant article.

  • I love it when folks get together and share views. Great blog,
    keep it up!

  • You ought to be a part of a contest for one of the finest websites on
    the internet. I'm going to highly recommend this site!

  • Wow, fantastic weblog structure! How lengthy have you been running a blog
    for? you make blogging glance easy. The entire glance of your website is excellent, as neatly as the
    content material!

  • Its like you read my mind! You seem to know so much about this,
    such as you wrote the e book in it or something.
    I think that you could do with some percent to power the message house a
    bit, but instead of that, that is magnificent blog. A fantastic read.
    I will definitely be back.

  • Hello, i think that i saw you visited my site thus i came to “return the favor”.
    I am attempting to find things to improve my website!
    I suppose its ok to use some of your ideas!!

  • I'm impressed, I have to admit. Seldom do I come across a blog that's both
    educative and engaging, and without a doubt, you've hit the nail on the head. The problem is something that not enough folks are speaking intelligently about. I am very happy that I came across this during my search for something concerning this.

  • What's up to every one, the contents present at this web site are in fact awesome for people experience, well, keep up the nice work fellows.

  • Its like you learn my thoughts! You seem to grasp so much about this, like you
    wrote the book in it or something. I feel that you simply can do with some % to pressure the message house a little bit, however other than that, that is great blog. A fantastic read. I'll certainly be back.

  • Every weekend i used to visit this web page, because i wish for enjoyment, since this this site conations genuinely pleasant funny information too.

  • My spouse and I stumbled over here by a different website
    and thought I might check things out. I like what I see so i am just following you.
    Look forward to exploring your web page repeatedly.

  • Thanks to my father who stated to me on the topic of
    this weblog, this website is really awesome.

  • First off I want to say great blog! I had a quick question that I'd like to ask if you don't mind.
    I was curious to know how you center yourself and clear
    your mind before writing. I've had trouble clearing my thoughts in getting my ideas out. I do enjoy writing however it just seems like the first 10 to 15 minutes tend to be lost simply just trying to figure out how to begin. Any ideas or hints? Cheers!

  • It's going to be end of mine day, but before end I am reading this fantastic paragraph to increase my experience.

  • Fascinating blog! Is your theme custom made or did you download
    it from somewhere? A theme like yours with a few simple tweeks would really make my blog jump out.
    Please let me know where you got your design. Cheers

  • Hi there, of course this piece of writing is actually pleasant and I
    have learned lot of things from it regarding blogging. thanks.

  • Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically
    tweet my newest twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  • Nice post. I used to be checking constantly this blog and I am inspired!
    Very useful info specially the remaining section :) I maintain such information a lot.
    I was seeking this particular information for a long time.
    Thanks and good luck.

  • First off I want to say fantastic blog! I
    had a quick question which I'd like to ask if you do not mind. I was curious to know how you center yourself and clear your thoughts before writing. I've had trouble
    clearing my mind in getting my ideas out. I do take pleasure
    in writing however it just seems like the first 10
    to 15 minutes are wasted simply just trying to figure out how to begin.
    Any recommendations or tips? Thanks!

  • Very good article. I am facing many of these issues as

  • This article will assist the internet visitors for creating
    new website or even a blog from start to end.

  • Hi Dear, are you in fact visiting this site regularly, if so afterward you
    will without doubt get good know-how.

  • Wow that was odd. I just wrote an very long comment but after I
    clicked submit my comment didn't appear. Grrrr... well I'm
    not writing all that over again. Regardless, just wanted to say great

  • This is a good tip especially to those new to the blogosphere.
    Brief but very precise info… Thanks for sharing this one.
    A must read article!

Comments have been disabled for this content.