How can I save asp:HiddenField value across postback?

前端 未结 8 1653
Happy的楠姐
Happy的楠姐 2020-12-06 12:36

How can I save asp:HiddenField value across postback?

8条回答
  •  春和景丽
    2020-12-06 13:03

    If you are dynamically adding it that will happen if its added too late in the page life cycle. Add it in PreInit and you should be fine. Check out http://msdn.microsoft.com/en-us/library/ms178472.aspx for more info.

提交回复
热议问题