How can I save asp:HiddenField value across postback?

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

How can I save asp:HiddenField value across postback?

相关标签:
8条回答
  • 2020-12-06 13:02

    Set EnableViewState to True

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题