Use the TryParse method to determine if a value is numeric
int retNum; if (Int32.TryParse(BookId, System.Globalization.NumberStyles.Any, System.Globalization.NumberFormatInfo.InvariantInfo, out retNum)) { //Is numeric }
Category: C# 3.5 by flexicoder
Name (required)
Mail (will not be published) (required)
Website
.Net code .Net security Android Apps Core Data Image iOS4 iPad iPhone Mac OS Mobile null OpenGL query syntax software web design WWDC10 XML XSL/T
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.