South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
In your first "Hello world" app?
LOL, me too actually![]()
First off. You can declare the 1 field to be an int. And assign a numbering system from 1 to 5 for bad/good/very good/brilliant/awesome or whatever.
This will make your reporting a bit easier lateron when you need to write reports on it instead of the 430985734985734590 columns you had to manually create and update for it.
AcidRaZor - how do I assign the Value 1->5 to the radio buttons? That's my prob... It's just true/false according to them
I want rad1 = 1
rad2 = 2
rad3 = 3
rad4 = 4
rad5 = 5
Then when I click save it saves that Value like Rad4 will save only 4.
In my report I can just select * from tblSurvey where column = 4....
AcidRaZor - how do I assign the Value 1->5 to the radio buttons? That's my prob... It's just true/false according to them
I want rad1 = 1
rad2 = 2
rad3 = 3
rad4 = 4
rad5 = 5
Then when I click save it saves that Value like Rad4 will save only 4.
In my report I can just select * from tblSurvey where column = 4....
Doesn't the ListItem class have properties for both Text and Value? You could use the Text property to display "Good, Bad, Whatever" and use the Value property to assign the appropriate "score", can't you?
I don't get what's so shocking? Isn't the OP using a Radio Button List? A Radio Button List contains a list of ListItem objects, each with corresponding Text and Value properties of type string.![]()
its shocking that you wouldn't just know that, a list is easier to control and read from code behind that to go rbn1 rbn2 rbn3....
But yes, Text/Value like Farligg said
Slip of the finger, or did I just earn the rank of Double-G here?![]()