What do you do when you can't use ViewState?

后端 未结 7 1790
长发绾君心
长发绾君心 2021-02-09 06:43

I have a rather complex page that dynamically builds user controls inside of a repeater. This repeater must be bound during the Init page event before ViewState is

7条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-09 07:13

    When creating dynamic controls ... I only populate them on the initial load. Afterwords I recreate the controls on postback in the page load event, and the viewstate seems to handle the repopulating of the values with no problems.

提交回复
热议问题