ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.ASP.Net Error: No mapping exists from object type System.Web.UI.WebControls.TextBox to a known managed provider native type<p>Hi <a class="username" rel="akhter"> akhter</a>,</p> <p>You are passing txtName which is an object of TextBox, thus you are getting exception.</p> <blockquote><cite>akhter says:</cite> <pre><code class="csharp plain">cmd.Parameters.AddWithValue(</code><code class="csharp string">"@PName"</code><code class="csharp plain">, txtName);</code></pre> </blockquote> <p>Change above with the below code.</p> <pre class="brush: csharp">cmd.Parameters.AddWithValue(&#34;@PName&#34;, txtName.Text);</pre> <p>&nbsp;</p>, 07 Aug 2019 06:01:09 GMT