title: C# Convert Textbox Input to Int
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1019793/how-can-i-convert-string-to-int">How can I convert String to Int?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a textbox that the user can put numbers in, is there a way to convert it to int? As I want to insert it into a database field that only accepts int.</p>
  
  <p>The tryParse method doesn't seem to work, still throws exception.</p>