D
Dwight Johnson
I am building a website in VS2005. I basically have one page,
default.aspx, which contains placeholder objects into which I add
various controls that are dynamically created. I have a dropdownlist
that is created in the InitializeComponent event so I can do a
FindControl on it later to determine its new value when it is
selected. Based on this new value I will then get data from a database
and fill another placeholder on the page with a dynamically built
table containing labels and textboxes filled with the new data. This
process happens in the Page_Load, regardless of the state of
IsPostBack. When I debug the process, the dynamically-created controls
are all populated with the new data, but when the page appears, the
only data I ever see is the data from the first time that the page
loaded. Any ideas? I have done this same thing in VS2003 without a
problem. I'm completely baffled by this one.
default.aspx, which contains placeholder objects into which I add
various controls that are dynamically created. I have a dropdownlist
that is created in the InitializeComponent event so I can do a
FindControl on it later to determine its new value when it is
selected. Based on this new value I will then get data from a database
and fill another placeholder on the page with a dynamically built
table containing labels and textboxes filled with the new data. This
process happens in the Page_Load, regardless of the state of
IsPostBack. When I debug the process, the dynamically-created controls
are all populated with the new data, but when the page appears, the
only data I ever see is the data from the first time that the page
loaded. Any ideas? I have done this same thing in VS2003 without a
problem. I'm completely baffled by this one.