Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 populate radio field names

Author  Topic 

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2005-08-12 : 06:56:29
I'm a relative novice to ASP.NET but I'm doing something which I think should be simple but it refuses to work.

I'm trying to create an array of radio list buttons with associated labels that are data from a field.

so my table is

FIELD1 FIELD2
DataR1C1 DataR1C2
DataR2C1 DataR2C2
...

What I want to do in my ASP is to show these transformed

i.e.

FIELD1 <RadioButtonGroup1> DataR1C1 <RadioButtonGroup1> DataR2C1
FIELD2 <RadioButtonGroup2> DataR1C2 <RadioButtonGroup2> DataR2C2
...

The idea being that the user can scroll down all the fields and select only one field value for any record (with the field name to the left as a guide)

I've tried a few things and got absolutely nowhere with this as whatever I try to do nothing appears on the web page, or I get an error or the radio buttons appear with no data. So now I'm wondering what would be the best approach to this and would appreciate advice so I can find out how to do what I want. I'm a bit blinded by all the options, datalists, repeaters, custom controls ... the list seems endless. Anyone have any constructive suggestions on where to start with this?

many thanks


steve



Alright Brain, you don't like me, and I don't like you. But lets just do this, and I can get back to killing you with beer.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-08-12 : 08:32:59
i prefer to use a combobox instead of radio button groups...
in both you can select only one. and a combobox takes up less space...

Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -