using update command in c#.net /ado through coding

manojkumarmaithil's Avatar, Join Date: Jun 2007
Go4Expert Member
while I am using datagrid through coding and tryin to use update command this show exception .it show tabelmapping is not difine so please tell me how to void this exception.I AM GRATFUL TO you if any body tell me.
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Please post your code, so that someone can help you out!
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by pradeep
Please post your code, so that someone can help you out!
Post the necessary code and not the whole bunch of it.
0
SNK111's Avatar, Join Date: Apr 2010
Newbie Member
Check this article ( shahriarnk.com/Shahriar-N-K-Research-Embedding-SQL-in-C-Sharp-Java.html ) for details on how to connect to SQL Server database from C#.NET database applications as well as Java database applications. It also describes how to pass embedded SQL queries (INSERT, UPDATE, DELETE), calling stored procedures, pass parameters etc.
0
virender.ets's Avatar
Banned
If you are seeing the mentioned exception means that you are giving some mistake in database connectivity.Just post you code for database connectivity and your update command so that I can trace the error.
0
shyam_oec's Avatar, Join Date: Nov 2007
Contributor
Quote:
Originally Posted by manojkumarmaithil View Post
while I am using datagrid through coding and tryin to use update command this show exception .it show tabelmapping is not difine so please tell me how to void this exception.I AM GRATFUL TO you if any body tell me.
Please visit this link Table Mapping in ADO.NET ,this may help.But can you share your code with us ?