Well, there is probably a very obvious answer to this question for many of you, but it puzzled me.
I have an asp.net web form and I have two controls on it (well, more than these two, but we will focus on them). The first is asp: dropdownlist and the second is asp: table .
Both of these controls are declared on the HTML side and populated (child controls added) on the code page.
My simple question (hopefully with a simple answer) is this:
Why is the viewport saved in the drop-down list and NOT for the table?
I need to populate a table every time the page loads, but I can populate the drop-down list once (using Not Page.IsPostBack), and it is saved.
NOTE. I read about the life cycle of ASP.NET pages, and I tried to place the same calls in events with the initials Init () and PreInit () with the same results.
What obvious detail will I skip here?
Thanks for the help.
source
share