c# - Issue with drop using _SelectedIndexChanged and the browser back button -


i trying populate 1 dropdown based on selection of drop down using selectedindexchanged. second selection takes user page. works if user hit back. section remembered , reselection results in user being sent previous choice. need reset index somehow if user hits back.

protected void btncommitteekeywordsearch_click(object sender, eventargs e) {     ddcommitteecategory.items.clear();     ddcommitteelist.items.clear();     panselectacommittee.controls.clear();     if (!string.isnullorwhitespace(committeekeywordsearch.text) || committeekeywordsearch.text != "select committee")     {         response.redirect("/ipa/ipastaging2016/about/committees_keywordsearch.aspx?code=" + committeekeywordsearch.text);     } }  protected void ddcommitteecategory_selectedindexchanged(object sender, eventargs e) {     if (!string.isnullorwhitespace(ddcommitteecategory.selecteditem.value))     {         //nothing     } }  protected void ddcommitteelist_selectedindexchanged(object sender, eventargs e) {     if (!string.isnullorwhitespace(ddcommitteelist.selecteditem.value) || committeekeywordsearch.text != "select committee")     {         response.redirect("/ipa/ipastaging2016/committees/committee_detail.aspx?code=" + ddcommitteelist.selecteditem.value);     } } 


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -