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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -