473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Radiobuttonlist, add new items problem

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
Jun 14 '06 #1
1 1383
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...

"lb" <ye******@NOSPAMMMMhotmail.com> wrote in message
news:o5******************************@comcast.com. ..
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

Jun 14 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hazzard | last post by:
I store radiobuttonlist values in the db using the string value of the radio button item value. (nvarchar) I am creating an edit functionality on the asp.net form so that when I reuse my...
3
by: William LaMartin | last post by:
If I create a RadioButtonList with, say, two items, then after the page loads and I select one of the items and then click on a button whose click event contains some code to display the...
5
by: DotNetGruven | last post by:
Anyone have any pointers on how to set the Value and Selected attributes in a ListItem in a RadioButtonList that is in a DataGrid? Here's what I have ------DataGrid------ -- BoundColumn 0 --...
4
by: juststarter | last post by:
Hello, I have an aspx file where i've put a placeholder element. On load (page_load) i create dynamically an html table which contains a checkbox and a radiobuttonlist in each tablerow . The...
5
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hallo, I have a radiobuttonlist control that is added on a custom Web User Control. This control has a property that exposes the SelectedIndex property of the embedded radiobuttonlist. When...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.