Microsoft
Software
Hardware
Network
Question : validate text box for integer
I want a validate a text box so it has only integer neither empty nor leading spaces
Answer : validate text box for integer
Will this work for you?
int test;
if (int.TryParse(txt.Text, out test))
{
//successful
}
else
{
//error
}
Random Solutions
Looking for Video Recording Software for Samsung Cameras
SqlDataAdapter InsertCommand not updating primary key value in dataset
What is differnce between machine.config and web.config?
XenServer 5.5 The Storage repository is not available.
VB.Net 2008 Problem passing data between forms
Formview - System.NullReference Exception when using findcontrol
Symantec Endpoint Protection 11.0 Client Push Deployment
Email Being Blocked
How do I configure exchange 2007 to allow iPhone/iPad to work.
SMTP Protocol Errors, Full Queues, Can't Send Emails