SmartNavigation and last page state

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default SmartNavigation and last page state

    SmartNavigation is supposed to keep the page's last state
    in the browser history. As far as I can tell, it doesn't
    do that if you use Response.Redirect to change to another
    page.

    Steps to reproduce the behavior:

    1. Create a new webform with one WebControls.TextBox and
    two WebControls.Button-Controls "Do nothing" and "Jump".

    2. Add the code

    Response.Redirect("http://www.microsoft.com")

    (or any other URL) to the Jump-Button's Click event.

    3. Start the application. Enter "1" into the textbox and
    click "Do Nothing". Enter "2" and click "Do Nothing".
    Enter "3" and click "Jump". IE should now navigate to the
    Microsoft homepage.

    4. Notice that when you click on the Back button, the
    textbox contains "2" and not "3", as you would expect.

    This is a problem, because in our application the buttons
    (which are labeled differently, of course) save the user
    input into the database. When the user navigates back in
    order to click on another jump button, the data is being
    overwritten with old values.

    Any suggestions will be appreciated.

    Sincerely,
    Heinrich

    Heinrich Moser Guest

  2. Similar Questions and Discussions

    1. Changing the State of a web page using radio buttons.
      I am trying to make a very simple web page that is only accessed through a small number of people but those people are allowed to change the...
    2. page view state for sort expression datagrid
      using the ASP.NET datagrid control to displaying some data from SQLserver, also provide paging and sorting function for the datagrid. However,...
    3. Show down state of button when on page using templates
      I am having the same problem.---I am not sure the issue has been made clear enough. The reason I want to use templates is to manage multiple pages...
    4. The View State Is Invalid for This Page and Might Be Corrupted
      Can anyone provide some help on this issue? Our code works fine on a single machine but in a web farm environment we get the following error. ...
    5. why controls keep their state even on a different page?
      I have 1. A main form with 2 buttons (btn1 and btn2) and a place holder (ph) 2. A Web User Control (ctl1) containing a textbox (txt) 3. A Web User...
  3. #2

    Default SmartNavigation and last page state

    Hi

    Response.Redirect("<<blah blan>>"), Redirects a client to
    a new URL and specifies the new URL.

    Smart navigation is best used with ASP.NET pages that
    require frequent postbacks but with visual content that
    does not change dramatically on return.

    Ravikanth

    >-----Original Message-----
    >SmartNavigation is supposed to keep the page's last
    state
    >in the browser history. As far as I can tell, it doesn't
    >do that if you use Response.Redirect to change to
    another
    >page.
    >
    >Steps to reproduce the behavior:
    >
    >1. Create a new webform with one WebControls.TextBox and
    >two WebControls.Button-Controls "Do nothing" and "Jump".
    >
    >2. Add the code
    >
    >Response.Redirect("http://www.microsoft.com")
    >
    >(or any other URL) to the Jump-Button's Click event.
    >
    >3. Start the application. Enter "1" into the textbox and
    >click "Do Nothing". Enter "2" and click "Do Nothing".
    >Enter "3" and click "Jump". IE should now navigate to
    the
    >Microsoft homepage.
    >
    >4. Notice that when you click on the Back button, the
    >textbox contains "2" and not "3", as you would expect.
    >
    >This is a problem, because in our application the
    buttons
    >(which are labeled differently, of course) save the user
    >input into the database. When the user navigates back in
    >order to click on another jump button, the data is being
    >overwritten with old values.
    >
    >Any suggestions will be appreciated.
    >
    >Sincerely,
    > Heinrich
    >
    >.
    >
    Ravikanth[MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139