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
Microsoft PKI Design
Screen resolution changed - Fedora 13
css
Congratulations to new Excel Genius: teylyn
Auto Send Excel as Email Attachment
Firefox css border on inside of div when embedding Flash with SWFObject, why?
Add Property to asp.net user control to make reusable
how can i create window service in C# using InstallUtil.exe ??
Trimming the beginning and end of a string
Block Logme internally