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.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>https://www.aspforums.net:443/Threads/164695/ASPNet-Error-No-mapping-exists-from-object-type-SystemWebUIWebControlsTextBox-to-a-known-managed-provider-native-type/https://www.aspforums.net:443/Threads/164695/ASPNet-Error-No-mapping-exists-from-object-type-SystemWebUIWebControlsTextBox-to-a-known-managed-provider-native-type/Wed, 07 Aug 2019 06:01:09 GMT