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
MS Access Data Import
i need a regexp which eliminate all what's not a number or a ";"
Creating Visual Studio 2008 Development Environment for Sharepoint 2007 Sequential Workflows
winning in negogiating
Exchange 2010 Tarpit issue
lpr print server issue
sql - date format
windows 2008
A disk read error occured. Press Ctrl-Alt-Delete to restart
how to add cookie using a servlet