ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.[Solved] Conver.ToInt32 Error: Input string was not in a correct format<blockquote><cite>nid@patel says:</cite> <pre><code class="csharp plain">cmd.Parameters.AddWithValue(</code><code class="csharp string">"@submain_mm"</code><code class="csharp plain">, Convert.ToInt32((form1.FindControl(</code><code class="csharp string">"txt_smain_mm"</code><code class="csharp plain">) </code><code class="csharp keyword">as</code> <code class="csharp plain">TextBox).Text.Trim()));&nbsp; </code></pre> </blockquote> <p>&nbsp;Check above line of code what value are getting ? Because of you are converting in integer so make sure it should be numeric value.</p> <p>&nbsp;</p>, 30 Jul 2019 04:57:10 GMT