Dynamically created DropDownList loses ListItems on Postback

前端 未结 5 1969
情书的邮戳
情书的邮戳 2021-01-18 05:53

I have a page that contains some dynamically created controls (TextBox and DropDownList). When a postback occurs, the TextBoxes keep their values, but the DropDownLists lose

5条回答
  •  耶瑟儿~
    2021-01-18 06:48

    May be you need to explicitly activate the ViewState for those DropDownLists...

    EDIT: This is what I mean by my last comment...

        
    

提交回复
热议问题