开发者

Dropdown autopostback problem with browsers back button

开发者 https://www.devze.com 2023-03-06 04:22 出处:网络
I have 3 dropdownlist First dropdownlist is pulling categories when i select a category from ddlist 1,

I have 3 dropdownlist

First dropdownlist is pulling categories when i select a category from ddlist 1, I fill second dropdownlist with sub categories of a category which i selected on ddlist1.

Wh开发者_如何学Pythonen i selected a sub category from ddlist2 i fill the third ddlist with products.

When i select a product from ddlist3 its redirecting me the products detail page.

If i press back button of the browser and select another category from ddlist1, ddlist1's selectedindexchange event firing after this event worked something is triggering ddlist3's selectedindexchange event even i dont touch ddlist3.

Note : I am clearing items in the ddlist2 and ddlist3 on ddlist1's selectedIndexChange event.


When you clear the items, does the ddlist3 index reset to 0? This change can fire the SelectedIndexChange event.

0

精彩评论

暂无评论...
验证码 换一张
取 消