Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
Need help in code
Nithika
10y
817
1
Reply
My execute query is not executing inside loop.
foreach(DataRowrow1 indt.Rows)
{
EmpNo = (row1["EmpNo"].ToString());
EmpName = (row1["EmpName"].ToString());
command.CommandText = "insert into table(id,EmpNo,EmpName) values("+ id+ ","+ EmpNo + ",'"+ EmpName + "')";
command.ExecuteNonQuery();
}
please help me
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
I want to resize Childform in mdi parent when it open
C# Shuffle string in list & display the output to a textbox