jeudi 1 mai 2014

c# - Chrome rompt forme par persistance menu déroulant de la liste sur le bouton "retour" - débordement de pile


Page A has a dropdownlist of shipping methods.


User makes a selection and clicks next.


Page B allows them to change their shipping address, which changes their shipping methods.


User clicks back button.


Page A shows new shipping methods in drop down, but Chrome has added a blank option at the top and made it the selected option. This blank option DOES NOT EXIST in the view source.


Chrome is choosing to insert a phantom blank selection item when its persisted drop down list value no longer exists, rather than respecting the selected="selected" tagged option.


This causes .net event validation to fail whenever the user tries to interact with the form, because this blank selection isn't real. "Invalid postback or callback argument. Event validation is enabled"


I've tried form.reset() on page load, and turning autocomplete off on the form tag. Anyone have any ideas? Much appreciated.



Page A has a dropdownlist of shipping methods.


User makes a selection and clicks next.


Page B allows them to change their shipping address, which changes their shipping methods.


User clicks back button.


Page A shows new shipping methods in drop down, but Chrome has added a blank option at the top and made it the selected option. This blank option DOES NOT EXIST in the view source.


Chrome is choosing to insert a phantom blank selection item when its persisted drop down list value no longer exists, rather than respecting the selected="selected" tagged option.


This causes .net event validation to fail whenever the user tries to interact with the form, because this blank selection isn't real. "Invalid postback or callback argument. Event validation is enabled"


I've tried form.reset() on page load, and turning autocomplete off on the form tag. Anyone have any ideas? Much appreciated.


0 commentaires:

Enregistrer un commentaire