.NET 2.0, wizard control with dynamic controls

M

Mark Baker

We're making use of the .NET 2.0 wizard control in our web app. On clicking
the 'Next' button the data on the current page of the wizard control is
saved. One of the pages of the wizard contains a user control that renders a
dynamically created table and various dynamically created web controls to the
page. The problem comes when we click 'Next' on this page because when the
user controls save method is called the user control errors as there is no
reference to the dynamic controls on the page, the reference is gone. Other
controls on this page of the wizard that do not belong to the user control
all save fine. We have tested and used the user control on regular .aspx
pages and the control performs as expected on each occasion. We have
experience of using user controls and dynamically created controls and are
aware of the way that the code the produces the web controls must be
re-parsed on each postback in order for the page to reload each controls view
state correctly for events such as save routines to work properly, hence I'm
posting here as I am a bit baffled by what is going on. Any help would be
appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top