input String was not in correct format when converting text box value into integer using C#
<pre><code> SetValueForText = Convert.ToInt32(txtpatientid.Text);
</code></pre>

<p>Input string was not in a correct format.
Please help me. thanks in advance.</p>
