I am checking a text box for the following
- If there is no input
- If the input is between 0 and 100
- If the input is a string other than a number
The code -
if (this.BugCompPct.Text == String.Empty)
else if (Convert.ToInt32(this.BugCompPct.Text) > 100 | Convert.ToInt32(this.BugCompPct.Text) < 0)
//Not sure about checking the last if
What could I put as the if conditional to check for a string other than an integer? I want only the input to be an integer and nothing else
Thanks