I'm writing a survey designer asp.net mvc. It has buttons to move questions up and down. The buttons post the whole form back and the affected questions are swapped on the server. When the form returns the only thing that is changed are the values for each survey question. Both firefox and IE seem to ignore this change.
Nothing is persisted to the database (until save) and url doesn't change so the post just returns the same view but I've stepped through my code to ensure the sequence of values being rendered in the view reflects the swap which is ok. However "view - source" doesn't show the change suggesting caching issue (maybe auto complete).
I've tried autocomplete="off" in my form.
Response.Cache.SetNoStore();
in my global.asax
[System.Web.Mvc.OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
before my controller
and the following in my page header
<meta http-equiv=="CACHE-CONTROL" content="NO-CACHE" />
<meta http-equiv=="PRAGMA" content="NO-CACHE" />
<META HTTP-EQUIV="EXPIRES" CONTENT="0" />
I also tried putting a random query value in my url.
NOTHING!!! This must be real common.
Anyone got a clue?