Programming VB.net Help plz...

well we still have some legacy systems that has not been upgraded or redone to be the latest and gratest so i still have to do some

classic asp
vb6
asp.net 2003
 
In your first "Hello world" app?

don't be daft, unless you wrote in some bolean comparisons in your hello world that needed to read and compare values from asp.net
 
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....
 
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.

wich makes it nice if its more that 5 options (like a 10 pointer for example), then as AR says just store rating as an int in the question table.

repeater + usercontrol (Question ID, Question, Radiobutton list); well thats what i thought anyways for the page being dynamic and not set in sand.
 
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....

radiobuttonlist, set selected item via the question's rating which should be an int.
 
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....

Create an Array of radio buttons:
Button1's Index = 0 'Excellent
Button2's Index = 1 'Very Good
Button3's Index = 2 'Good
Button4's Index = 3 'Average
Button5's Index = 4 'Poor

Then when saving:

DB("FIELD").value = Button(Index) .value +1
Here if button 1 is clicked, its Index is 0, then then the value saved is 1 = Excellent - etc

Or

Use a List box, and set up 5 items, and assign the rating values to the ItemIndex of the list box.

Then when saving:

DB("FIELD").value = listbox(listbox.selected).ItemIndex
 
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?
 
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?

:eek:
 
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. :confused:
 
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. :confused:

its shocking that you wouldn't just know that :D, a list is easier to control and read from code behind that to go rbn1 rbn2 rbn3....
 
its shocking that you wouldn't just know that :D, a list is easier to control and read from code behind that to go rbn1 rbn2 rbn3....

I haven't really been paying attention to the thread... :p Just read about the comment of "not being a professional developer and using VS2005". That offended me. So I retaliated. :p
 
I know about the test field but where do you see a value field?
 
Check your properties to the right hand side

Or just do a quick "." and see the intellisense do they heavy lifting for you ;)

But yes, Text/Value like Farligg said
 
Top
Sign up to the MyBroadband newsletter
X