asp.net - How to generate and 7-digit random number/special character string in VB.Net? -
how can generate 7-digit random number , special character string in textbox on button click event, in vb.net?
put characters want in string , pick that:
dim chars string = "0123456789abcdefghijklmnopqrstuvwxyz!#%&()?+-;:" dim word char() = new char(6) dim rnd new random() integer = 0 word.length - 1 word(i) = chars.chars(rnd.next(chars.length)) next thetextbox.text = new string(word)
Comments
Post a Comment