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
Vlookup with exact number format
putting a requiredfield on a combobox in asp
Translate web site
What is the proper DNS settings for ...
PL/SQL Performance
JQuery based image (actually an element of code) rotator
Code line too long
Reference a selected rows column value from a gridview in VB .Net 3.5
SQL Express - Change DB file path
rdp connection to win xp client on small business 2003 network blocked from outside network