TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
utsav rathour
NA
58
0
Error inserting
May 11 2009 1:13 PM
for (int i = 0; i < rows; i++) { values = dataGridView1.Rows[i].Cells[1].Value.ToString(); MessageBox.Show(values); cm.CommandText="insert into check values('"+textBox1.Text+"','"+values+"','','');"; cm.Connection=cn; MessageBox.Show(cm.CommandText.ToString()); cm.ExecuteNonQuery(); //MessageBox.Show(dataGridView1.Rows[i].Cells[1].Value.ToString()); values = ""; } this shows an error on cm.ExecuteNonQuery(); please help asap
Reply
Answers (
3
)
Silverlight Application
using System.Runtime.Remoting.Channels.Tcp