ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. 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>https://www.aspforums.net:443/Threads/471748/Solved-ConverToInt32-Error-Input-string-was-not-in-a-correct-format/https://www.aspforums.net:443/Threads/471748/Solved-ConverToInt32-Error-Input-string-was-not-in-a-correct-format/Tue, 30 Jul 2019 04:57:10 GMT