Register
|
Articles
|
Questions
|
Projects
|
Asp.Net Tips
|
Free Magazines
|
Tutorials
|
Search
|
Write to us
|
Login
Search
Articles
Asp.Net 2.0
AJAX
ADO.Net
C#
Javascript
Books
Asp.Net 2.0
AJAX
ADO.NET
C#
JavaScript
MS SQL Server
SilverLight
VB.NET
XML
Web Service
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
How To Validate Integer or Double Numeric values in Asp.Net?
Posted by
Moderator1
on
5/9/2009 10:41:45 AM
3828
Views
To check Integer values
int intOutput = 0;
if (System.Int32.TryParse(TextBox1.Text, out intOutput))
{
Response.Write("Valid");
}
else
Response.Write("Not Valid");
To check Double values
double dblOutput = 0;
if (System.Double.TryParse(TextBox1.Text, out dblOutput))
{
Response.Write("Valid");
}
else
Response.Write("Not Valid");
Post New Tips/Tricks
View all Tips/Tricks
Featured Resources:
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time.
The Beginner's Guide to Joomla
An Introduction to an Award-Winning Content Management System (CMS).
100% Free Subscription until Stock lost.
View complete list.
Sponsored by
Home
About us
Contact Us
Links
Advertise
Privacy Policy
Copyright ©
2012
. www.AspdotnetCodes.com. All rights reserved.