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.Error: Error converting data type nvarchar to float in ASP.Net<blockquote><cite>nedash says:</cite> <pre>TxtzirB.Text</pre> </blockquote> <p>&nbsp;Share the value of TxtzirB.Text</p>https://www.aspforums.net:443/Threads/126047/Error-Error-converting-data-type-nvarchar-to-float-in-ASPNet/https://www.aspforums.net:443/Threads/126047/Error-Error-converting-data-type-nvarchar-to-float-in-ASPNet/Tue, 04 Jul 2017 09:15:05 GMTError: Error converting data type nvarchar to float in ASP.Net<blockquote><cite>dharmendr says:</cite> <pre>&nbsp;Share the value of TxtzirB.Text</pre> </blockquote> <p>&nbsp;it will be number</p> <p>like 50.5 or 50</p>https://www.aspforums.net:443/Threads/126047/Error-Error-converting-data-type-nvarchar-to-float-in-ASPNet/https://www.aspforums.net:443/Threads/126047/Error-Error-converting-data-type-nvarchar-to-float-in-ASPNet/Tue, 04 Jul 2017 14:54:23 GMTError: Error converting data type nvarchar to float in ASP.Net<blockquote><cite>nedash says:</cite> <pre><code class="csharp plain">_cmd.Parameters.AddWithValue(</code><code class="csharp string">"@zirbana"</code><code class="csharp plain">, TxtzirB.Text);</code></pre> </blockquote> <p>&nbsp;Replace with the below code.</p> <pre class="brush: csharp">_cmd.Parameters.AddWithValue(&#34;@zirbana&#34;, Convert.ToDouble(TxtzirB.Text));</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/126047/Error-Error-converting-data-type-nvarchar-to-float-in-ASPNet/https://www.aspforums.net:443/Threads/126047/Error-Error-converting-data-type-nvarchar-to-float-in-ASPNet/Wed, 05 Jul 2017 02:31:55 GMTError: Error converting data type nvarchar to float in ASP.Net<p>Hi Nedash,</p> <p>Try using this&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp">_cmd.Parameters.AddwithValue(&#34;@zirbana&#34;,Convert.ToDouble(TxtzirB.Text));</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/126047/Error-Error-converting-data-type-nvarchar-to-float-in-ASPNet/https://www.aspforums.net:443/Threads/126047/Error-Error-converting-data-type-nvarchar-to-float-in-ASPNet/Wed, 05 Jul 2017 03:34:30 GMT