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: No mapping exists from object type System.Web.UI.WebControls.ListItem to a known managed provider native type in ASP.NetHi @AnkitPal,<br />Please try the following<br /><br /><a href = 'link(Threads/499175/C-No-mapping-exists-from-object-type-SystemDataDataRowView-to-a-known-managed-provider-native-type/)'>C# No mapping exists from object type System.Data.DataRowView to a known managed provider native type.</a><br /><br />It might help you.<br /><br />Cheers Andrea.https://www.aspforums.net:443/Threads/697950/Error-No-mapping-exists-from-object-type-SystemWebUIWebControlsListItem-to-a-known-managed-provider-native-type-in-ASPNet/https://www.aspforums.net:443/Threads/697950/Error-No-mapping-exists-from-object-type-SystemWebUIWebControlsListItem-to-a-known-managed-provider-native-type-in-ASPNet/Mon, 03 Apr 2017 03:48:13 GMTError: No mapping exists from object type System.Web.UI.WebControls.ListItem to a known managed provider native type in ASP.Net<blockquote><cite>Andrea says:</cite> <pre>Hi @AnkitPal, Please try the following <a href="http://www.aspforums.net/Threads/499175/C-No-mapping-exists-from-object-type-SystemDataDataRowView-to-a-known-managed-provider-native-type/">C# No mapping exists from object type System.Data.DataRowView to a known managed provider native type.</a> It might help you. Cheers Andrea.</pre> </blockquote> <p>&nbsp;I solve this issue to change few codes as like below-</p> <p><strong>Before code -</strong></p> <p>&nbsp;</p> <pre class="brush: csharp">cmd.Parameters.AddWithValue(&#34;@Depart&#34;, ddl_chatdept.SelectedItem);</pre> <p><strong>Now Code -</strong></p> <p>&nbsp;</p> <pre class="brush: csharp">cmd.Parameters.AddWithValue(&#34;@Depart&#34;, ddl_chatdept.SelectedItem.ToString());</pre> <p>This is working fine.</p>https://www.aspforums.net:443/Threads/697950/Error-No-mapping-exists-from-object-type-SystemWebUIWebControlsListItem-to-a-known-managed-provider-native-type-in-ASPNet/https://www.aspforums.net:443/Threads/697950/Error-No-mapping-exists-from-object-type-SystemWebUIWebControlsListItem-to-a-known-managed-provider-native-type-in-ASPNet/Mon, 03 Apr 2017 04:09:48 GMT