R
Ronald
Hello,
For a registration page I need to constantly create controls
on-the-fly. The input for one control determines the contents of the
next (mostly DropDownLists) control. This is a pretty common practice I
would think.
But, ASP.NET 2.0 will not let me do it. I can dynamically create a
control and read it's PostBack values in the (next) Page_PreLoad event.
But, for a subsequent control to be created based on the value of the
previous control I have to use the next stage, Page_Load. However, for
a control created so late in the PageCycle, ViewState is not restored.
I tried many, many different ways to try and solve this, but none
succeeded. The problem is the PageCycle. It Cycles only once, where I
would need several Cycles for on PageLoad.
Any help/workaround would be greatly appreciated.
Ronald Wijnsema
Netherlands
For a registration page I need to constantly create controls
on-the-fly. The input for one control determines the contents of the
next (mostly DropDownLists) control. This is a pretty common practice I
would think.
But, ASP.NET 2.0 will not let me do it. I can dynamically create a
control and read it's PostBack values in the (next) Page_PreLoad event.
But, for a subsequent control to be created based on the value of the
previous control I have to use the next stage, Page_Load. However, for
a control created so late in the PageCycle, ViewState is not restored.
I tried many, many different ways to try and solve this, but none
succeeded. The problem is the PageCycle. It Cycles only once, where I
would need several Cycles for on PageLoad.
Any help/workaround would be greatly appreciated.
Ronald Wijnsema
Netherlands