Radiobuttonlist, add new items problem

L

lb

Hello,

I am trying to use a radiobuttonlist with the new multiview control. Am
having trouble understanding how to build the radiobuttonlsit just one time,
and not many times.

In my first view, I select from a list of items, then select "next". Of
course, this causes a postback, and displays the next view.

On this second view, I want to build a radiobuttonlist based on the
selection from the first view. This works fine...UNTIL, I go back to the
first view, change the inistial selection, and then proceed to view 2.

Now my rbl gets built again, BUT, the first items added to the rbl are
there, as well as the second group.

If I surround the code that builds the radio button with if (! IsPostBack),
then the list will not build, because the list is contained in view2...going
from view 1 to 2 causes a postback.

Is there a way to build this raiobutton list one time, based on the
selection from view 1?

Hope this makes sense...thanks,

Lynn
 
L

lb

Just to clarify...here's the situation...

View 1
- user makes a selection, 1 thru 5
- go to view 2

View 2
- build a radiobuttonlist based on selection made in view 1
- go to view 3
- OR go back to view 1 and make a new selection

View 3
- continue...
 

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,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top