Persisting dynamic controls

D

dougloj

Hi,

In my ASP.NET application, I want to be able to dynamically create
RadioButtonLists and/or
CheckBoxLists according to what is in my database. I wrote routines to
create RadioButtonLists and CheckBoxLists. Each routine pulls data out
of my database, populates the respective control, and passes the
control back to the caller. The caller places the returned controls
into a table. The controls are displayed as expected.

However, after a postback is invoked as a result of a selection change
in one of the RadioButtonLists or CheckBoxLists, all of my
dynamically created RadioButtonList and/or CheckBoxLists disappear.

Can anybody please tell me how to prevent the disappearing trick?

Thanks for the bandwidth.

Doug
 

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,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top