OleDbDataAdapter ole=new OleDbDataAdapter(new OleDbCommand
("select * from login",oleDbConnection1));
OleDbCommandBuilder cmd=new
OleDbCommandBuilder(ole);
ole.Fill(dataSet11,"login");
DataRow drow=dataSet11.Tables
["login"].NewRow();
drow[0]=textBox1.Text;
drow[1]=textBox2.Text;
drow[2]=textBox3.Text;
dataSet11.Tables["login"].Rows.Add
(drow);
ole.UpdateCommand=cmd.GetUpdateCommand();
ole.Update(dataSet11,"login");
MessageBox.Show("one row added");
this gives exception.how to solve it
Answer Posted / shiva
what is the exception your faced????????
may be the exception is where your declare dataset11
in diconnected model we hav to declre the dataset then only
data willbe fiied in our application.......
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to create a quiz software using 4 options to answer and how to check with answers in the database and award marks....
What is datasource in ado.net?
What is a datareader object?
What is ado.net tutorial?
How do you merge 2 datasets into the third dataset in a simple manner?
What is aggregating data ?
Can we connect two dataadapters to same data source using single connection at same time?
Does ado.net use odbc?
describe the dataset object in ado.net.
Can datareader hold data from multiple tables?
What is bubbled event can you please explain?
What is a column variable?
In how many ways we can retrieve table records count? How to find the count of records in a dataset?
What is ado.net in mvc?
What is the difference between DataReader and DataSet in ADO.NET?