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
}
dot.NET C#(CSharp)VB.NET C++ Visual Basic (VB) Transact-SQL (T-SQL) ASP ASP.NET VBScript JavaScript XML XSL XPATH WSDL C/C++ Ruby Python Visual Studio TFS Perl WebServices SOAP WCF WPF COM/DCOM MTS/COM+
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
}
0 comments:
Post a Comment