Click here to Skip to main content
16,008,010 members
Home / Discussions / C#
   

C#

 
GeneralRe: It's urgent Pin
ednrgc30-Jan-07 9:09
ednrgc30-Jan-07 9:09 
GeneralRe: It's urgent Pin
Pete O'Hanlon30-Jan-07 9:25
mvePete O'Hanlon30-Jan-07 9:25 
JokeRe: It's urgent Pin
amatbrewer30-Jan-07 12:28
amatbrewer30-Jan-07 12:28 
QuestionPlease Help Pin
rockyl30-Jan-07 2:43
rockyl30-Jan-07 2:43 
AnswerRe: Please Help Pin
Mircea Puiu30-Jan-07 3:22
Mircea Puiu30-Jan-07 3:22 
QuestionHow to get controls in grid column in runtime? Pin
babutkchn30-Jan-07 2:07
babutkchn30-Jan-07 2:07 
QuestionAccessing dbase database files(dbf format) Pin
ranandbe30-Jan-07 2:03
ranandbe30-Jan-07 2:03 
QuestionLabel update Pin
imnotso#30-Jan-07 1:06
imnotso#30-Jan-07 1:06 
Hi
In my 'virtual roulette' table I need to increment the amount of times each random number has occured for any given amount of spins of the wheel. Each label (0-36) has another blank label next to it that will contain these occurances.

If for 3 spins the random numbers are 3,14 and 17. Blank labels 3,14 and 17 should now have the value 1.

Instead of typing IF RanNum = 1 the add 1 to lab1
IF RanNum = 2 the add 1 to lab2
IF RanNum = 3 the add 1 to lab3 etc.............

How do I use.....

STRING labNum = "lab" + RanNum

to then access the corresponding Label on the page?

FindControl is looking good but does that not just tell me if it is there or not?

Any help for this newbie would be great.






Harvey
AnswerRe: Label update Pin
Martin#30-Jan-07 1:19
Martin#30-Jan-07 1:19 
GeneralRe: Label update Pin
imnotso#30-Jan-07 1:21
imnotso#30-Jan-07 1:21 
GeneralRe: Label update Pin
Martin#30-Jan-07 1:26
Martin#30-Jan-07 1:26 
GeneralRe: Label update [modified] Pin
Pete O'Hanlon30-Jan-07 2:05
mvePete O'Hanlon30-Jan-07 2:05 
AnswerRe: Label update Pin
Luc Pattyn30-Jan-07 2:05
sitebuilderLuc Pattyn30-Jan-07 2:05 
GeneralRe: Label update Pin
imnotso#30-Jan-07 2:12
imnotso#30-Jan-07 2:12 
GeneralRe: Label update Pin
Martin#30-Jan-07 2:20
Martin#30-Jan-07 2:20 
GeneralRe: Label update Pin
imnotso#30-Jan-07 2:42
imnotso#30-Jan-07 2:42 
GeneralRe: Label update Pin
Martin#30-Jan-07 2:55
Martin#30-Jan-07 2:55 
GeneralRe: Label update Pin
imnotso#30-Jan-07 4:00
imnotso#30-Jan-07 4:00 
GeneralRe: Label update Pin
Martin#30-Jan-07 4:05
Martin#30-Jan-07 4:05 
GeneralRe: Label update [modified] Pin
Luc Pattyn30-Jan-07 2:42
sitebuilderLuc Pattyn30-Jan-07 2:42 
AnswerRe: Label update Pin
Jasmine250130-Jan-07 5:53
Jasmine250130-Jan-07 5:53 
GeneralRe: Label update [modified] Pin
imnotso#30-Jan-07 6:13
imnotso#30-Jan-07 6:13 
GeneralRe: Label update Pin
Dan Neely30-Jan-07 6:45
Dan Neely30-Jan-07 6:45 
GeneralRe: Label update Pin
Jasmine250130-Jan-07 18:34
Jasmine250130-Jan-07 18:34 
GeneralRe: Label update Pin
Jasmine250130-Jan-07 18:39
Jasmine250130-Jan-07 18:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.