Tuesday, October 11, 2005

.net SmartNavigation

What is SmartNavigation?
SmartNavigation is a feature provided by asp.net. When enabled this makes sure your pages are shown smoothly and last position of cursor location, scroll etc are restored effortlessly.

Why this feature deserves a mention here?
Because of the problems it creates. It isn’t very reliable because of the following reasons.
  • All versions of IE do not support this feature properly
  • Other browsers are totally unpredictable with this feature.
  • It creates mess with other user interfaces on postback.

    Smartnavigation removes CSS after postback
    This was the sole reason for blogging this. Yes smartNavigation strips off css after a postback.
    Solution - you need to explicitly specify the path of css as absolute path instead of relative path. You can keep it dynamic by adding some server side code as below LINK href=''< =Request.ApplicationPath %>/Styles/Sanjay.css''

    Microsoft's documentation of SmartNavigation

    If you still wish to use smartnavigation on other browsers take a look at this code project (Free source) Crossbrowser SmartNavigation Alternative II

    Conclusion: Use this feature only when you are sure of your audience using latest IE (at least IE 5) only. And make use of it when its absolutely necessary to make your application work better. And do take care of css paths etc.

    Anonymous said...

    Porsche has been making fast cars for 50 years. Now Porsche has revealed initial details of its new mid-range coupe, the Cayman. It fits between the Boxster and 911. Significantly, the car has the mid-engined layout of the Boxster, but a slightly larger engine of 3.4 liters. Like the 911, it is available as a coupe. Top speed is put at 171 mph, with a 0-60 mph time of under 5.4 seconds.

    Anonymous said...

    Just thought I'd let you know about a site where you can make over $800 a month in extra income. Go to this site   MAKE MONEY NOW  and put in your zip code..... up will pop several places where you can get paid to secret shop, take surveys, etc.  It's free.  I found several and I live in a small town!

    Gregory said...

    Your Computer is running slow? Then you should better scan it for adware, spyware and other malware. I have Pro Products on my spywareblaster Site.

    Anonymous said...

    If you want to have the oportunity to retire early and enjoy life, start reading this genuine report on how to make millions.

    The information is time sensitive. So act quickly. A moneyback guarantee is offered though clickbank.

    You have nothing to loose, so Yes - I'd like to know how to make Millions

    This is an investment, not another affiliate program.

    cc Infopage said...

    Yahoo News

    Microsoft, Yahoo Reportedly Ready To Link Instant-Messaging Services (TechWeb via Yahoo! News)
    Microsoft and Yahoo are expected to announce Wednesday interoperability between each other's instant messaging service, a move that could dramatically change a market that's been dominated by America Online Inc., a newspaper reported.

    Today's News From & About Yahoo

    cc Infopage: 30,000 daily updated Information Pages about all kind of subjects

    PS: To get more, just click the links

    Anonymous said...

    I came across you blog and thought you may find this site usefull. It has gas saving tips and where to find cheap gas. download free ringtone


    Anonymous said...

    I like the way you have layed out your blog! I am currently working on one
    myself when I find time from editing my new sites.

    If you would be interested in checking out my site on refurbished cellular phone
    , I would appreciate any comments. It basically covers refurbished cellular phone
    related stuff.

    If you have time check it out :-)

    Anonymous said...

    MCSD for Microsoft .NET Certification

    Term Papers said...

    I have been visiting various blogs for my term papers writing research. I have found your blog to be quite useful. Keep updating your blog with valuable information... Regards