Thursday

isnumeric c#

Following function works like analog to vb isNumeric function
and checks that every character entered into myTextField is digit.

if (myTextField.Text.All(Char.IsDigit)){
// is numeric
}else{
// is not numeric
}

No comments:

test smtp server with powershell

Send-MailMessage -SMTPServer smtp.domain.com -To [email protected] -From [email protected] -Subject "This is a test email" -Body ...