There are many logins on the website to use the verification code. Look at the fun yourself and have written a simple (better, you have to write the verification code to the picture, a little difficult, haven't studied) first. SUB Page_Load (Sender As Object, E AS Eventargs) if not ispostback the Dim Rannum as random = new random 'Write the generated random number to lablrannum.text = rannum.next (1111,9999) .tostring end ifend subsub BTNOK_CLICK (Sender AS Object, EVENTARGS) DIM STRTEMP AS STRING = LBLRANNUM.TEXT.TOSTRING 'Check if the number entered in TextBox and whether the resulting verification code is consistent, the same is OK, otherwise Error if straTemp = TRIM (txtnumber. TEXT) THEN LBLMESSAGE.TEXT = "OK!" LBLRANNUM.TEXT = RANNUM.NEXT (1111, 9999) .Tostring 'If this sentence is not written, the resulting verification code has been the verification generated when the leaves are first loaded. Code else lblMessage.text = "Error!" Lballnum.text = rannum.next (1111,9999) .tostring end ifenet sub