Quote Originally Posted by su ki View Post
hey Pansophist

you may get reference of label dynamically like this

vb Code:
  1. Dim lblRollno As Label = DirectCast(Me.Controls("roll" +rollNum ), Label )
  2. ' then set the text
  3. lblRollno.Text = randomNum.ToString()
Thank you very much. Now I can start debugging other problems! Woohoo.