Matt

Matt

  • 1.6k
  • 3
  • 278

Dynamic control

Jan 13 2024 6:31 PM

What is best practice for keeping track of data of dynamic controls over postbacks, when there are a few of them to keep track of.

If there is a

  • Dynamically filled dropdown (based on values from a database), when selected creates >
  • A dynamically created table based on the selection made. A table with some controls that when clicked >
  • Creates a dynamic form with (let's say) a "edit" button.

How do I keep the values of each across post-backs? I try to use static variables as triggers, based on those values I recreate objects before page load. That soon becomes a nigthmare. The problem is that the content and the calls go missing during postbacks.I hope someone here can help me; how should I approach such a scenario as described, in principle. And is there some good tutorial about this type of problems you know of.


Answers (4)