Neither IE or Firefox respects the control values that are output
Posted
by Luke Rohde
on Stack Overflow
See other posts from Stack Overflow
or by Luke Rohde
Published on 2010-04-07T12:39:52Z
Indexed on
2010/04/07
12:43 UTC
Read the original article
Hit count: 379
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
NOTHING!!! This must be real common.
Anyone got a clue?
© Stack Overflow or respective owner