I get this strange problem in Safari and Chrome (works in Firefox and IE).
- I start with this checkbox list, which has the first element "A", but the elements "B" and "C" are not checked
- Then go to another page that orders the items that appear in the checkbox list
- I change the order of the items in the list, so now it goes 'B', 'A', 'C'
- I press the back button
- The page is reassigned from the server (caching is disabled for me), I check the response sent from the server, and the βAβ element is still checked and is no longer the first item in the list.
- !!! Strange behavior!!! The page is loaded in the browser with the new orders "B", "A", "C", but "A" is not checked; instead, the first element "B" is checked.
Somehow it seems that the position of the validation element was restored by clicking the "Back" button, and the form data was discarded, which were sent from the server.
When I refresh the page, now the order of "B", "A", "C" and the element "A" are now checked, and everything looks fine.
In both cases, the page has an IsPostBack value of false.
Is this a web set error?
I tried, cleared the cache, switched to private browsing mode, clearing the history. Still the same behavior.
c # google-chrome safari back-button
Ian
source share