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
Migrating files/folders to a new domain
Is exercising in an air conditionedroom a good idea?
Schedule Task "Could not start"
Database Design - Double Entry Accounting
Calling IE to run on second monitor in batch file log in script
How to find and replace specific string with blank using sed or any better cmd?
How to activate the insertitemtemplate of a formview
How to access class due to 'cannot instantiate abstract class' error
IF - Then script based on file date?
loop an array in an array and insert into db