System.Text.RegularExpressions.Regex rgxValidate = new System.Text.RegularExpressions.Regex("[0-9]");if (!rgxValidate.IsMatch(txtFaxNo.Text)){errClients.SetIconAlignment(txtFaxNo, ErrorIconAlignment.MiddleLeft);errClients.SetError(txtFaxNo, "Fax numarası giriş formatı hatalı.");return;}
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.