Newbie needs help

  • Thread starter Thread starter Danny Ni
  • Start date Start date
D

Danny Ni

Hi,

I have the following sample data from a SQL server table:

Category Item
---------- ---------
cat1 item101
cat1 item102
cat1 item103
cat2 item201
cat2 item202

I want to careate an ASPX page to display a radio button attached to every
item and allow user to choose one and only one item within each category.
What is the easiest way to do it in ASP.Net.

Thanks In Advance
 
I think you need to do it with 3 sets of databind.

1 set for cat1 and cat2.
1 set for item under cat1.
1 set for item under cat2.

2nd and 3rd sets databind according to the checked value of 1st set. So, you cannot choose item202 when you select cat1.
 
I feel that I am misunderstood, the data I showed are for demo purpose, in
real life there could be any numbers of items in any number of categories.

Tom said:
I think you need to do it with 3 sets of databind.

1 set for cat1 and cat2.
1 set for item under cat1.
1 set for item under cat2.

2nd and 3rd sets databind according to the checked value of 1st set. So,
you cannot choose item202 when you select cat1.
 
Back
Top