Simon Mourier's Avatar
Simon Mourier's blog (1346 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • algorithms
  • architecture
  • asp.net

ASP.NET Hidden Field Persistence During Life Cycle

Sep 11, 2012 See the question and my original answer on StackOverflow

I've ripped a lot of hair on ASP.NET lifecycle :-). I would advise you this:

  • bind to control events
  • avoid binding or overriding to page events

In this case, you should have a protected HiddenField declared in your page/user control. So you really want to bind to the ValueChanged event, and forget about the rest.

  • SmoBlog © 2010-2025 Simon Mourier. All rights reserved.
  • Privacy & Terms