refresh - ASP.NET: F5 in Firefox keeps DropDownList value in UI (but not in code) -
i don't meaning of firefox's behaviour when hitting f5 on asp.net page.
i have dropdownlist (autopostback=true if significant) , change value "first value" (index 0, default) "second value" (index 1). page posts , filters lists.
now, when hit f5 (or refresh button in address bar) dropdownlist keeps selected value in ui ("second value"), when debugging page_load() dropdownlist.selectedindex-property 0 instead of 1 leads manner dropdownlist selection , lists not fit. ispostback false when hitting f5.
internet explorer resets @ least dropdownlist makes acceptable. imho best behaviour simple same request again when hitting f5 (with postback).
i know familiar problem (for me bug in firefox, isnt it?), there workaround?
thank you.
no solution workaround:
i store selected value of dropdownlist in cookie , set on every page_load.
Comments
Post a Comment