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
Which is faster dataset or datareader?
Compare Data Reader & Dataset in ado.net?
Describe the disconnected architecture of ADO.NET’s data access model.
What is sqldatareader?
What is a datareader object?
What is the significance of CommandBehavior.CloseConnection ?
What are the major difference between classic ADO and ADO.NET?
Explain why edit is not possible in repeater?
What is ado.net components?
What is microsoft ado?
Define connection string?
What is ole used for?
What is the difference between ado.net and oledb?
What is difference between datagridview and datagrid control in winforms?
What do you know about ado.net's methods?