vb.net - How do i stop user going to next page if text box has numbers? -



vb.net - How do i stop user going to next page if text box has numbers? -

hi guys , girls of stackoverflow community

i have little problem have text box if has numbers in want them not able proceed next form have tried isnumeric works if string numbers come in letter allows user go next page. here have far.

if isnumeric(textbox1.text) messagebox.show("no numbers in name!") else me.hide() frmquestion1.show() end if

so know way create if numbers in string letters in there wont go next form.

this classic regular look validation. seek this:

dim re regex = new regex("\d") if re.ismatch(textbox1.text) messagebox.show("no numbers in name!") else me.hide() frmquestion1.show() end if

vb.net

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -