Group29.com - What did you expect?
  Create an account
:: Home  ::  Downloads  ::  Your Account  ::  Forums  ::
Google Adsense
Modules
  • Home
  • Downloads
  • ExpectationReviews
  • Forums
  • Group29 FAQ
  • MovieReviews
  • OtherReviews
  • Stories Archive
  • Submit News
  • Top 10
  • Topics
  • Web Links
  • New at Group29
    ·Expectation Review: Avengers: Infinity War [24]
    ·Movie Review: Star Wars: The Last Jedi [16]
    ·Movie Review: Star Wars: The Last Jedi [23]
    ·2017 USC vs UCLA preview
    ·Forum Topic: Update your Facebook property
    ·2016 UCLA vs USC preview
    ·Expectation Review: Star Wars: The Force Awakens [29]
    ·Web Link: WEP Key Converter
    ·Forum Topic: Why does my IPA file get saved as a zip file in IE?
    ·Web Link: BeyondCompare

    read more...
    TheForce.Net
    ·Rebelscum Breast Cancer Awareness Charity Patch
    ·BBC Interviews J.J. Abrams About Trek And Wars
    ·CEII: Jabba's Palace Reunion - Massive Guest Announcements
    ·Fathead's May the Fourth Be With You!
    ·Star Wars Night With The Tampa Bay Storm Reminder
    ·Stephen Hayford Star Wars Weekends Exclusive Art
    ·ForceCast #251: To Spoil or Not to Spoil
    ·New Timothy Zahn Audio Books Coming
    ·SDCC: Exclusive Black Series Boba Fett With Han In Carbonite Set
    ·Star Wars Art Exposition May 4th

    read more...
    Hot trends
    ·Group29.com

    read more...
    Group29 Discussion Board :: View topic - Why do bookmarks behave badly on ASPX pages in ASP.NET?
    Log in Register Forum FAQ Memberlist Search
    Ratings, Links, Free Speech and more

    Group29 Discussion Board Forum Index -> Group29 Tech Tips -> Why do bookmarks behave badly on ASPX pages in ASP.NET?
    Post new topic  Reply to topic View previous topic :: View next topic 
    Why do bookmarks behave badly on ASPX pages in ASP.NET?
    PostPosted: Mon Jan 24, 2005 3:02 pm Reply with quote
    BB
    Regular
     
    Joined: Jun 23, 2004
    Posts: 340


      


    You have built an ASP.NET application site using Visual Studio .NET and Visual Basic .NET. You have a page which updates itself based upon data entered on that same page. For example a database search that returns results based on the search criteria. Now users are complaining that they cannot bookmark those search results! What is the deal? Also, the back button does not seem to go back!

    ASP.NET changed the way we think about navigation on the web. Most of the functionality allowed by ASP.NET comes from the method of POSTing back to the same page in order to run server-side code. The first and most annoying issue realized from this method is the loss of client scroll position on each postback.

    Microsoft has a feature called SmartNavigation that can be enabled on a page level in the Page directive of the ASPX file, or at application in the Web.config file. But read on, it may not fit the bill for you. It did not help in my situation where users want to bookmark.

    Here is the [url=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIPageClassSmartNavigationTopic.asp]MSDN article Page.SmartNavigation Property[url] from the .NET Framework class library.

    When a page is requested by an Internet Explorer 5.5 browser, or later, smart navigation enhances the user's experience of the page by performing the following:

    - eliminating the flash caused by navigation.
    - persisting the scroll position when moving from page to page.
    - persisting element focus between navigations.
    - retaining only the last page state in the browser's history.
    Smart navigation is best used with ASP.NET pages that require frequent postbacks but with visual content that does not change dramatically on return. Consider this carefully when deciding whether to set this property to true.

    The problem mainly stems from the fact that most ASP.net (VB.NET and C#.NET) pages get built with Form method="POST". This means that bookmarking the page will not work, because a bookmark only saves a URL or URI. With a "GET" method, all the necessary parameters are present. With a "POST" method, they are all built into the form.

    Difference between GET and POST
    http://www.cs.tut.fi/~jkorpela/forms/methods.html

    Quote:
    For METHOD="GET" the form data is encoded into a URL (or, speaking more generally, into a URI). This means that an equivalent to a form submission can be achieved by following a normal link referring to a suitable URL; see the document Choices in HTML forms for details and examples. On a typical browser, the user sees the URL of a document somewhere (e.g. on Location line), and if he is viewing the results of a query sent using METHOD="GET", he will see what the actual query was (i.e. the part of the URL that follows the ? sign). The user could then bookmark it or cut&paste it for later use (e.g. to be E-mailed or put into one's own HTML document after some editing).


    You need to remind your users that a complex web application works much the way the old desktop application did. And on desktop applications, there is no back button and there is no bookmarking!
    View user's profile Visit poster's website
    Why do bookmarks behave badly on ASPX pages in ASP.NET?
      Group29 Discussion Board Forum Index -> Group29 Tech Tips
    You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot vote in polls in this forum
    All times are GMT - 6 Hours  
    Page 1 of 1  

      
      
     Post new topic  Reply to topic  


    Powered by phpBB © 2001-2003 phpBB Group
    Theme created by Vjacheslav Trushkin
    Forums ©
    Group29 Productions

    All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest (c) 2006 by Group29 Productions.


    You can syndicate Group29 Productions news with an RSS Feeder using the file backend.php


    PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
    Page Generation: 0.19 Seconds

    :: HeliusGray phpbb2 style by CyberAlien :: PHP-Nuke theme by www.nukemods.com ::