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] ASP.Net ExecuteNonQuery Error: Must declare scalar variable<blockquote><cite>itsme says:</cite> <div class="line number25 index24 alt2"><code class="csharp spaces">&nbsp;</code><code class="csharp plain">cmd.Parameters.Clear();</code></div> <div class="line number26 index25 alt1"><code class="csharp spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="csharp plain">cmd.ExecuteNonQuery();</code></div> </blockquote> <p>Remove these two lines.</p>https://www.aspforums.net:443/Threads/106961/Solved-ASPNet-ExecuteNonQuery-Error-Must-declare-scalar-variable/https://www.aspforums.net:443/Threads/106961/Solved-ASPNet-ExecuteNonQuery-Error-Must-declare-scalar-variable/Mon, 19 Aug 2019 00:44:00 GMT