No mapping exists from object type System.Web.UI.WebControls.

  • Thread starter Thread starter aarepasky
  • Start date Start date
A

aarepasky

I am getting the the message on the command:

cm.ExecuteNonQuery();

Complete message is:

No mapping exists from object type System.Web.UI.WebControls.TextBox to
a known managed provider native type.


This is with 2005 Express edition of ASP.NET using C#.

The SQL connection string is:

"Data Source=kevster\\sqlexpress;Initial Catalog=labbox;Persist
Security Info=True;User ID=labbox;Password=repasky"

What do I need to correct this?

Thanks,
riprip
 
Seems like it has something to do with the TextBox control. can you post a
bit more code? Where did you use the TextBox control?
 
Sounds like you set the DataBinding on the TextBox itself instead of
the Text property of the TextBox?

John H.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top