Dynamically added controls in Asp.Net

后端 未结 9 1641
情书的邮戳
情书的邮戳 2020-12-01 02:22

I\'m trying to wrap my head around asp.net. I have a background as a long time php developer, but I\'m now facing the task of learning asp.net and I\'m having some trouble w

9条回答
  •  抹茶落季
    2020-12-01 02:49

    The only correct answer was given by Aydsman. LoadViewState is the only place to add dynamic controls where their viewstate values will be restored when recreated and you can access the viewstate in order to determine which controls to add.

提交回复
热议问题